For every table TD I have popup showing and it works. …
If tablesort is used popup is not working anymore
I know that issue is because of DOM but I have no idea how to fix it
Here is example: https://jsfiddle.net/master1991/hrxkn7wt/15/
I’m going to guess it’s because your tablesort is destroying and recreating your table rows, which is triggering your observeChanges mutation observers.
I have two possible solutions in my head.
#1: Set observeChanges to false. #2: Instead, use a delegated jquery binding:
Hm doesn’t look like that though… they’re just appending the same rows elsewhere:
However this still does trigger the popup to destroy itself, so as @m_hutley suggests just set observeChanges to false… this would probably be more economical that destroying and re-initializing the popups on every table sort.
Thanks for answer! I did try observeChanges set to false before . … It did not worked! And does not work now to (on my code) but it works on fiddle now I m confused what is different on my end?
EDIT: I did find why it worked on test fiddle. … Tablesort version on my end was Version 0.0.1 but on fiddle Version 0.0.11. … I updated tablesort version on my end and now it works!