Skip to content

Commit

Permalink
Revert "fix(ui5-li-custom): propagate spacebar input to input field (#…
Browse files Browse the repository at this point in the history
…831)" (#840)

This reverts commit d9ea302.
  • Loading branch information
ilhan007 authored Oct 11, 2019
1 parent e163d17 commit f574378
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions packages/main/src/CustomListItem.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
import { isSpace } from "@ui5/webcomponents-base/dist/events/PseudoEvents.js";
import ListItem from "./ListItem.js";
import CustomListItemTemplate from "./generated/templates/CustomListItemTemplate.lit.js";

Expand Down Expand Up @@ -59,41 +58,6 @@ class CustomListItem extends ListItem {
return [ListItem.styles, columnListItemCss];
}

onkeydown(event) {
if (isSpace(event) && event.target !== this) {
return;
}
super.onkeydown(event);
}

onkeyup(event) {
if (isSpace(event) && event.target !== this) {
return;
}
super.onkeyup(event);
}

onmousedown(event) {
if (event.target !== this) {
return;
}
super.onmousedown(event);
}

onmouseup(event) {
if (event.target !== this) {
return;
}
super.onmouseup(event);
}

onclick(event) {
if (event.target !== this) {
return;
}
super.onclick();
}

get classes() {
const result = super.classes;
result.main["ui5-custom-li-root"] = true;
Expand Down

0 comments on commit f574378

Please sign in to comment.