Skip to content

Commit

Permalink
Update UI on clearing reference (#188)
Browse files Browse the repository at this point in the history
* update UI on clearing reference

Co-authored-by: Andreas Hasenkopf <[email protected]>

closes #183
  • Loading branch information
TeodoraPavlova authored Jan 19, 2024
1 parent 24e17e5 commit 5afee3a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/components/inputs/ReferencedEntitySelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5afee3a

Please sign in to comment.