StickySort icon indicating copy to clipboard operation
StickySort copied to clipboard

Disable sorting to particular column also checkbox not working

Open tanumoy88 opened this issue 9 years ago • 1 comments

Hi,

Thank you for nice script. But I tried to stop sort on particular columns , which i not got any solution also if i added a checkbox in table header on scroll of particular section the check box functionality is not working. Default when section is not scrolled and also table header is not frozen that time checkbox functionality is working. Please help me out for this scenario.

tanumoy88 avatar Jun 10 '16 05:06 tanumoy88

Your checkbox implementation might have to be reworked—if you're using an ID-based checkbox, you will need to change that. StickySort clones the <thead> element, so that will duplicate elements within it, and we know that duplicated IDs are a big no-no. Browser behaviour dealing with multiple instances of the same ID is undefined.

If you're binding any kind of event to the checkboxes in the table head, you might want to rely on event bubbling.

terrymun avatar Jun 10 '16 08:06 terrymun