You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just noticed that the sticky header widget is creating two elements on the page with the same ID. I see you did this to maintain styling, but this is a problem in my case, as having two elements in the DOM with the same ID breaks other code. Is there any way around this, other than changing your code to make it assign a new ID when it clones the table?
The text was updated successfully, but these errors were encountered:
I realize there is a compromise between keeping the user's style and not breaking the DOM but making them style the table with a class instead of by ID, but I don't think it makes sense to break the DOM in order to preserve styling by ID. In this case styling should be done by class and just documented in the widget docs. If you wanted to add more code you could move the styling for this ID into a class and apply it to both elements, but I don't think that's necessary.
Hope you don't mind the feedback, the code still works great :)
In verison 2.9.0, a new option was added to the sticky header widget named stickyHeaders_cloneId. It contains a string suffix to add to any table id. Default is -sticky.
I just noticed that the sticky header widget is creating two elements on the page with the same ID. I see you did this to maintain styling, but this is a problem in my case, as having two elements in the DOM with the same ID breaks other code. Is there any way around this, other than changing your code to make it assign a new ID when it clones the table?
The text was updated successfully, but these errors were encountered: