npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

need to know which column currently has focus

I’m using ag-grid and I’m trying to resolve a 508 accessibility issue. I have a grid where half of the columns are not displayed at any given point due to width constraints. In this case I have a horizontal scrollbar. 508 states that the element with focus must always be visible to the user but if I tab through the header elements I eventually end up on an element which is invisible unless I manually scroll the grid. I realize that ensureColumnVisible(colId) will do what I need, and I have a listener set up for the keyup event, but how do I know what the current colId is?


What does this have to do with npm? This forum is for things that have to do with npm.