Standardize event names to be consistent with @headlessui-react

Was previously using Vue names since Vue was the primary reference while porting, but as the public API is closer to the React one it makes sense to use that.

Fixes #8
This commit is contained in:
Ryan Gossiaux
2021-12-19 00:28:09 -08:00
parent 63d44e125c
commit 8e890b2e80
9 changed files with 13 additions and 18 deletions

View File

@@ -164,7 +164,7 @@
},
select(value: unknown) {
if (disabled) return;
dispatch("updateValue", { value });
dispatch("change", value);
},
});
setContext(LISTBOX_CONTEXT_NAME, api);