mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
Do not fire initial onChange
This causes the note type to revert back to the first item after initial note load
This commit is contained in:
parent
efe76a24dc
commit
800144dc67
1 changed files with 0 additions and 1 deletions
|
@ -61,7 +61,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
$effect(() => {
|
$effect(() => {
|
||||||
if (!selectedItem && items.length > 0) {
|
if (!selectedItem && items.length > 0) {
|
||||||
selectedItem = items[0];
|
selectedItem = items[0];
|
||||||
onChange?.(selectedItem);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue