Skip to content

Commit

Permalink
fix: do not set pointer events on rows and cells (#5061) (#5064)
Browse files Browse the repository at this point in the history
Co-authored-by: Serhii Kulykov <[email protected]>
Co-authored-by: Tomi Virkki <[email protected]>
  • Loading branch information
3 people authored Nov 21, 2022
1 parent 3065d26 commit 419be7c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions packages/grid/src/vaadin-grid-keyboard-navigation-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,11 @@ export const KeyboardNavigationMixin = (superClass) =>
/** @private */
_onContentFocusIn(e) {
const { section, cell, row } = this._getGridEventLocation(e);

if (!cell && !this.__rowFocusMode) {
return;
}

this._detectInteracting(e);

if (section && (cell || row)) {
Expand Down
5 changes: 0 additions & 5 deletions packages/grid/src/vaadin-grid-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ registerStyles(
width: 100%;
box-sizing: border-box;
margin: 0;
pointer-events: none;
}
[part~='row'][loading] [part~='body-cell'] ::slotted(vaadin-grid-cell-content) {
Expand Down Expand Up @@ -159,10 +158,6 @@ registerStyles(
text-overflow: ellipsis;
}
[part~='cell'] {
pointer-events: initial;
}
[hidden] {
display: none !important;
}
Expand Down

0 comments on commit 419be7c

Please sign in to comment.