Skip to content

Conversation

@samgrrehder
Copy link

The filter doesn't update the focused element when showing or hiding the sticky header. This fixes it.

The filter doesn't change the focused element when showing or hiding the sticky header. This fixes it.
if (isVisible !== laststate) {
// make sure the focused filter stay focused after showing/hiding sticky
var $td = $(document.activeElement).closest('td'),
column = $td.parent().children().index($td);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! Thanks for contributing and I'm sorry for taking so long to follow up on this PR!

Would you please change this to get the cell's index from the data-column attribute since the header may have a colspan which would mess up this calculation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants