From 5afee3a3ae0e6b8d2ee0ca8cf29944c7cdeb3432 Mon Sep 17 00:00:00 2001 From: TeodoraPavlova <27234545+TeodoraPavlova@users.noreply.github.com> Date: Fri, 19 Jan 2024 14:11:42 +0200 Subject: [PATCH] Update UI on clearing reference (#188) * update UI on clearing reference Co-authored-by: Andreas Hasenkopf closes #183 --- frontend/src/components/inputs/ReferencedEntitySelect.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/components/inputs/ReferencedEntitySelect.vue b/frontend/src/components/inputs/ReferencedEntitySelect.vue index 9b35fd1..1aebe1b 100644 --- a/frontend/src/components/inputs/ReferencedEntitySelect.vue +++ b/frontend/src/components/inputs/ReferencedEntitySelect.vue @@ -114,6 +114,7 @@ export default { }, onClear(eId) { if (this.selectType === 'single') { + this.selected.length = 0; this.$emit("update:modelValue", null); } else { this.selected = this.selected.filter(x => x.id !== eId);