Skip to content

Commit

Permalink
fix: spacebar works for HTML elements inside a ui5-table (#964)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladitasev authored Nov 25, 2019
1 parent a5081c1 commit 2384236
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packages/main/src/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
import ResizeHandler from "@ui5/webcomponents-base/dist/delegate/ResizeHandler.js";
import ItemNavigation from "@ui5/webcomponents-base/dist/delegate/ItemNavigation.js";
import { isSpace } from "@ui5/webcomponents-base/dist/events/PseudoEvents.js";
import TableTemplate from "./generated/templates/TableTemplate.lit.js";

// Styles
Expand Down Expand Up @@ -204,12 +203,6 @@ class Table extends UI5Element {
this._itemNavigation.update(event.target);
}

_onkeydown(event) {
if (isSpace(event)) {
event.preventDefault();
}
}

_onColumnHeaderClick(event) {
this.getColumnHeader().focus();
this._itemNavigation.update(event.target);
Expand Down

0 comments on commit 2384236

Please sign in to comment.