Apply review suggestion from @raccube

This commit is contained in:
Andreas Nedbal 2021-12-30 12:23:35 +01:00
parent 6df040eece
commit 06e31bb0be

View file

@ -27,6 +27,7 @@ export function createListHandler(event: Event): void {
} }
export function createListInputHandler(event: KeyboardEvent): void { export function createListInputHandler(event: KeyboardEvent): void {
// Return key
if (event.which === 13) { if (event.which === 13) {
event.preventDefault(); event.preventDefault();
document.querySelector<HTMLButtonElement>('button#create-list').click(); document.querySelector<HTMLButtonElement>('button#create-list').click();