Skip to content

Commit

Permalink
update code comment to accurately describe code behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
vursen committed Oct 16, 2024
1 parent e174d3e commit 29857f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/grid/src/vaadin-grid-keyboard-navigation-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,8 @@ export const KeyboardNavigationMixin = (superClass) =>
// listener invocation gets updated _focusedItemIndex value.
this._focusedItemIndex = dstRowIndex;

// This has to be set after scrolling, otherwise it can be removed by
// `_preventScrollerRotatingCellFocus(row, index)` during scrolling.
// Reapply navigating state in case it was removed due to previous item
// being focused with the mouse.
this.toggleAttribute('navigating', true);

return {
Expand Down

0 comments on commit 29857f5

Please sign in to comment.