Make blur a proper event listener

This commit is contained in:
Henrik Giesel 2021-05-18 19:19:05 +02:00
parent 32ca473fd4
commit 2e13d3a21d

View file

@ -25,8 +25,8 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
return `${entry.name} (${count})`;
}
function blur(this: HTMLSelectElement) {
state.setCurrentIndex(parseInt(this.value));
function blur(event: Event): void {
state.setCurrentIndex(parseInt((event.target! as HTMLSelectElement).value));
}
</script>