empathyco / x

Commerce Search & Discovery frontend web components
Apache License 2.0
80 stars 21 forks source link

fix(history-queries-switch): migrate value to modelValue #1618

Closed victorcg88 closed 1 month ago

victorcg88 commented 1 month ago

Pull request template

`HistoryQueriesSwitch` was not migrated correctly to Vue3 and was not working. It was required to change the `v-model` prop default name which changed in Vue3 (`value` to `modelValue`) We are also introducing the BREAKING CHANGE of removing the event `change` in favor of the `update:modelValue` in the `BaseSwitch` component to follow the Vue3 naming. Source: https://v3-migration.vuejs.org/breaking-changes/v-model.html ## Motivation and context

Type of change

What is the destination branch of this PR?

How has this been tested?

Tests performed according to testing guidelines:

Checklist: