Bug 37762: VueJS framework: Add update event to v-select FormElement

The existing 'selected' event only fires when something is selected, it does not fire when a selection is unselected. onUpdated fires for both.

Signed-off-by: Jason Robb <jrobb@sekls.org>
Signed-off-by: Lisette Scheer <lisette@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Pedro Amorim 2025-10-01 14:57:05 +00:00 committed by Lucas Gass
parent 903da26fe4
commit 91b4780074
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 1 additions and 0 deletions

View File

@ -111,6 +111,7 @@
:disabled="disabled"
:multiple="attr.allowMultipleChoices"
@option:selected="attr.onSelected && attr.onSelected(resource)"
@update:modelValue="attr.onUpdated && attr.onUpdated(resource)"
>
<template v-if="attr.required" #search="{ attributes, events }">
<input