Skip to content

fix: update:modelValue event overwrites event listener from v-model#165

Merged
ruchamahabal merged 1 commit intofrappe:developfrom
ruchamahabal:fix-vmodel-conflict
Apr 15, 2026
Merged

fix: update:modelValue event overwrites event listener from v-model#165
ruchamahabal merged 1 commit intofrappe:developfrom
ruchamahabal:fix-vmodel-conflict

Conversation

@ruchamahabal
Copy link
Copy Markdown
Member

@ruchamahabal ruchamahabal commented Apr 15, 2026

Problem:
update:modelValue event overwrites event listener from v-model because they're spread into the same v-on binding

link-sync image

Only the script works in this case, but the Link field's value isn't retained (sync with variable fails)

Fix:
Construct an array of event handlers for the same event and bind that to the component

- because they're spread into the same v-on binding

- construct an array of event handlers for the same event and bind that with component
@ruchamahabal ruchamahabal merged commit 62922ef into frappe:develop Apr 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant