From 91b47800742622e2d74eaa801cbd42aae9637334 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Wed, 1 Oct 2025 14:57:05 +0000 Subject: [PATCH] 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 Signed-off-by: Lisette Scheer Signed-off-by: Lucas Gass --- koha-tmpl/intranet-tmpl/prog/js/vue/components/FormElement.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/FormElement.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/FormElement.vue index 6c42e1526c..3f37c1bb22 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/FormElement.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/FormElement.vue @@ -111,6 +111,7 @@ :disabled="disabled" :multiple="attr.allowMultipleChoices" @option:selected="attr.onSelected && attr.onSelected(resource)" + @update:modelValue="attr.onUpdated && attr.onUpdated(resource)" >