fooplugins / FooTable

jQuery plugin to make HTML tables responsive
https://fooplugins.com/plugins/footable-jquery/
Other
2.13k stars 637 forks source link

After upgrading, all event handlers in cell contents are not working #814

Open dantart opened 6 years ago

dantart commented 6 years ago

Hi:

I had to upgrade from v2 to v3 because some big tables in v2 was not working quickly. So I moved to v3, not thousands of rows tables are working faster.

But all my event handlers stopped to work.

I use some Kartik Editable elements, some bootstrap popover and other event handlers. With some of them (my custom ones) I changed ".change" to ".on" and after footable is loaded, they are still working.

But I can not "touch" the Kartik code and other external codes, and they are applying some javascript (trigger events) at the end of the code (document ready).

This was working perfectly in v2, but now, in v3, I see that all handlers stop to work after table is redraw (that's to mean, after I call to .footable() ).

footable is destroying all elements and creating again ? if yes, why if not ... then, why all elements lose their event handlers ?

Thank you