diff --git a/frontend/components/tasks/sequenceLabeling/LabelingMenu.vue b/frontend/components/tasks/sequenceLabeling/LabelingMenu.vue index 142130ed..850cfef2 100644 --- a/frontend/components/tasks/sequenceLabeling/LabelingMenu.vue +++ b/frontend/components/tasks/sequenceLabeling/LabelingMenu.vue @@ -26,7 +26,6 @@ item-value="id" label="Select a label" small-chips - @input="onLabelSelected" /> label.suffixKey !== null) + }, + + value: { + get() { + return this.selectedLabel + }, + set(labelId: number) { + this.onLabelSelected(labelId) + } } }, @@ -107,7 +114,6 @@ export default Vue.extend({ // Todo: a bit hacky. I want to fix this problem. // https://github.com/vuetifyjs/vuetify/issues/10765 this.$nextTick(() => { - this.value = null if (this.$refs.autocomplete) { (this.$refs.autocomplete as any).selectedItems = [] } @@ -116,7 +122,6 @@ export default Vue.extend({ }, onLabelSelected(labelId: number) { - this.value = labelId this.$emit('click:label', labelId) this.close() }