Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CorePluginsAdmin/vue/src/FormField/FieldCheckboxArray.vue')
-rw-r--r--plugins/CorePluginsAdmin/vue/src/FormField/FieldCheckboxArray.vue5
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);
},