StickyTableHeaders icon indicating copy to clipboard operation
StickyTableHeaders copied to clipboard

INPUT in cloned header

Open arturm11 opened this issue 8 years ago • 4 comments

To prevent wrong behavior when there are any INPUT elements (eg. checkboxes) in heading cells, please add the following line in base.init:

base.$clonedHeader.find("input").attr("disabled", true);

arturm11 avatar Mar 21 '16 16:03 arturm11

Wider selector:

base.$clonedHeader.find("input, select").attr("disabled", true);

It worked even better for me.

@arturm11 thanks!

PS. If one does not use this fix, this plugin breaks associated events (that seated earlier) to the input fields

ezoterik avatar Jun 23 '16 21:06 ezoterik

Is this fix can be implement?

I'm using input for filtering at header table, without this fix, the serialize data will be doubled with empty value.

I have made a pull request https://github.com/jmosbech/StickyTableHeaders/pull/126

d3artagnan avatar Dec 01 '16 03:12 d3artagnan

I have a check box in my header and I have added that line to my downloaded source. I want my checkbox to work even with sticky headers.

But when I check the check box, it works for the first time. But when trying to uncheck, it does not invoke my event handler and ajax call.

base.$clonedHeader.find("input").attr("disabled", true);

Any ideas?

venkatpolisetti avatar Jul 01 '17 21:07 venkatpolisetti

i have the same problem here, it worked in first time, but in the second it double the entries in my link for example test.com?test1=abc&test1=aaa

Mouerr avatar Feb 13 '18 09:02 Mouerr