diff options
Diffstat (limited to 'plugins/CorePluginsAdmin/vue/src/FormField/FieldCheckboxArray.vue')
-rw-r--r-- | plugins/CorePluginsAdmin/vue/src/FormField/FieldCheckboxArray.vue | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/CorePluginsAdmin/vue/src/FormField/FieldCheckboxArray.vue b/plugins/CorePluginsAdmin/vue/src/FormField/FieldCheckboxArray.vue index b9e5c7036e..168c4cd255 100644 --- a/plugins/CorePluginsAdmin/vue/src/FormField/FieldCheckboxArray.vue +++ b/plugins/CorePluginsAdmin/vue/src/FormField/FieldCheckboxArray.vue @@ -78,9 +78,8 @@ export default defineComponent({ // undo checked changes since we want the parent component to decide if it should go // through - (this.$refs.root as HTMLElement).querySelectorAll('input').forEach((inp: HTMLInputElement) => { - inp.checked = !inp.checked; - }); + const item = (this.$refs.root as HTMLElement).querySelectorAll('input').item(changedIndex); + item.checked = !item.checked; this.$emit('update:modelValue', newValue); }, |