Page MenuHomePhabricator

Migrate existing `v-model` sytax in WikibaseLexeme Vue templates to Vue 3
Closed, ResolvedPublic

Description

The way that the v-model syntax works has changed in Vue 3 and so our code that uses it needs to be adjusted. More details at: https://v3-migration.vuejs.org/breaking-changes/v-model.html

[Vue warn]: (deprecation COMPONENT_V_MODEL) v-model usage on component has changed in Vue 3. Component that expects to work with v-model should now use the "modelValue" prop and emit the "update:modelValue" event. You can update the usage and then opt-in to Vue 3 behavior on a per-component basis with `compatConfig: { COMPONENT_V_MODEL: false }`.
 Details: https://v3-migration.vuejs.org/breaking-changes/v-model.html 
 at <Anonymous key=1 class="wikibase-lexeme-sense-gloss-language-input" modelValue=""  ... >

Event Timeline

Change 851640 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/extensions/WikibaseLexeme@master] Replace v-model on custom component with separate directives

https://gerrit.wikimedia.org/r/851640

Change 851640 merged by jenkins-bot:

[mediawiki/extensions/WikibaseLexeme@master] Replace v-model on custom component with separate directives

https://gerrit.wikimedia.org/r/851640