Skip to content

Commit

Permalink
fix: restore tabindex attribute after switching disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
vursen committed Mar 31, 2022
1 parent b240984 commit aab5175
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions packages/grid/src/vaadin-grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -468,23 +468,6 @@ class Grid extends ElementMixin(
}
}

/**
* Override an observer from `DisabledMixin` to not
* set `tabindex` on the grid when it is re-enabled.
*
* @param {boolean} disabled
* @param {boolean} oldDisabled
* @protected
* @override
*/
_disabledChanged(disabled, oldDisabled) {
super._disabledChanged(disabled, oldDisabled);

if (oldDisabled) {
this.removeAttribute('tabindex');
}
}

/** @private */
__getBodyCellCoordinates(cell) {
if (this.$.items.contains(cell) && cell.localName === 'td') {
Expand Down

0 comments on commit aab5175

Please sign in to comment.