remove optional chaning

until CodeSandbox adds support for it in CRA apps
This commit is contained in:
dwelle 2020-01-02 20:43:00 +01:00
parent 1383758aa7
commit 579c32b5b2

View File

@ -284,7 +284,7 @@ class App extends React.Component<{}, AppState> {
private onKeyDown = (event: KeyboardEvent) => {
if (
event.key === "Backspace" &&
(event.target as HTMLElement)?.nodeName !== "INPUT"
(event.target as HTMLElement).nodeName !== "INPUT"
) {
for (var i = elements.length - 1; i >= 0; --i) {
if (elements[i].isSelected) {