Skip to content

Commit

Permalink
fix(ui5-table): fix scrolling on space (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
fifoosid committed May 31, 2019
1 parent 5d4b644 commit cd63e9a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/main/src/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import UI5Element from "@ui5/webcomponents-base/src/UI5Element.js";
import ResizeHandler from "@ui5/webcomponents-base/src/delegate/ResizeHandler.js";
import ItemNavigation from "@ui5/webcomponents-base/src/delegate/ItemNavigation.js";
import Bootstrap from "@ui5/webcomponents-base/src/Bootstrap.js";
import { isSpace } from "@ui5/webcomponents-base/src/events/PseudoEvents.js";
import TableColumn from "./TableColumn.js";
import TableRow from "./TableRow.js";
import TableRenderer from "./build/compiled/TableRenderer.lit.js";
Expand Down Expand Up @@ -170,6 +171,12 @@ class Table extends UI5Element {
this._itemNavigation.update(event.target);
}

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

popinContent(_event) {
const clientRect = this.getDomRef().getBoundingClientRect();
const tableWidth = clientRect.width;
Expand Down

0 comments on commit cd63e9a

Please sign in to comment.