diff --git a/.changeset/hip-kids-decide.md b/.changeset/hip-kids-decide.md new file mode 100644 index 000000000..8b0d5c5ae --- /dev/null +++ b/.changeset/hip-kids-decide.md @@ -0,0 +1,14 @@ +--- +"sit-onyx": major +--- + +feat: Remove/Rename emits that collide with native event names + +- OnyxInput, OnyxTextarea and OnyxStepper: Remove `focus` and `blur` event - Use `focusin`/`focusout` or `@focus.capture`/`@focus.blur` instead +- OnyxInput and OnyxTextarea: Remove Vue `change` emit - You will now receive the native `@change` event, but the value must now retrieved with with `$event.target.value` or use `@update:modelvalue` +- OnyxNavBar: Rename `appAreaClick` to `navigateToStart` and `backButtonClick` to `navigateBack` +- OnyxNavButton: Rename `click` to `navigate`, also the native MouseEvent is now passed as second parameter +- OnyxNavItem: Rename `click` to `navigate` +- OnyxRadioButton: Remove Vue `change` emit - You will now receive the native `@change` event, but the value must now retrieved with with `$event.target.value` or use `@update:modelvalue` +- OnyxSelectInput: Rename `click` to `inputClick` +- OnyxToastMessage: Remove Vue `click` emit - You will now always receive the native `@click` event, even when `clickable` prop is false/not set. diff --git a/apps/demo-app/src/App.vue b/apps/demo-app/src/App.vue index 0551bb25b..2e7373bbc 100644 --- a/apps/demo-app/src/App.vue +++ b/apps/demo-app/src/App.vue @@ -69,7 +69,7 @@ watch( :key="item.href" v-bind="item" :active="item.href === router.currentRoute.value.path" - @click="router.push" + @navigate="router.push" />