mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Make blur a proper event listener
This commit is contained in:
parent
32ca473fd4
commit
2e13d3a21d
1 changed files with 2 additions and 2 deletions
|
@ -25,8 +25,8 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
return `${entry.name} (${count})`;
|
return `${entry.name} (${count})`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function blur(this: HTMLSelectElement) {
|
function blur(event: Event): void {
|
||||||
state.setCurrentIndex(parseInt(this.value));
|
state.setCurrentIndex(parseInt((event.target! as HTMLSelectElement).value));
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue