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:
Abdo 2025-08-27 02:26:13 +03:00
parent efe76a24dc
commit 800144dc67

View file

@ -61,7 +61,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
$effect(() => {
if (!selectedItem && items.length > 0) {
selectedItem = items[0];
onChange?.(selectedItem);
}
});
</script>