DataTables / DataTables/Plugins

Popover not working as it should

Open
#47 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.1k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

Hi,

In this example:
http://hammr.co/8234009/12/problems.html

Try clicking the "submit"-link. A popover will show. Then click outside of the popover. The popover will disappear.

In regular bootstrap behaviour, the popover will be removed from the DOM. With DataTables loaded, it will not. It is still there, hidden.

This issue creates hover-effect bugs when hovering the table rows. Try opening 3 or 4 popovers, then close them. Then hover the table-rows where the popovers are supposed to be visible when they are opened, and you will see the issue.

I do not know how to fix this issue. It works as it should when I remove datatables from the equation. As in this bootstrap example (inspect the open popover and see it get removed from the DOM after being closed):
http://getbootstrap.com/javascript/#popovers

Many thanks if you guys could fix it, somehow.

Jonathan

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the behavior in the linked hammr.co example, then compare it with the linked Bootstrap popover example while inspecting the DOM after dismissal. Trace the interaction between DataTables and Bootstrap popovers. Done means dismissed popovers are removed from the DOM and repeated open/close cycles no longer cause table-row hover effects.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.