Browse Source

Wrap by nexttick

pull/1581/head
Hironsan 3 years ago
parent
commit
2bbbe7edda
1 changed files with 5 additions and 3 deletions
  1. 8
      frontend/components/tasks/sequenceLabeling/EntityEditor.vue

8
frontend/components/tasks/sequenceLabeling/EntityEditor.vue

@ -214,10 +214,12 @@ export default Vue.extend({
this.entity = null
this.startOffset = 0
this.endOffset = 0
// Todo: a bit hacky. I want to fix this.
// Todo: a bit hacky. I want to fix this problem.
// https://github.com/vuetifyjs/vuetify/issues/10765
// @ts-ignore
this.$refs.autocomplete!.selectedItems = []
this.$nextTick(() => {
// @ts-ignore
this.$refs.autocomplete!.selectedItems = []
})
},
updateRelation() {

Loading…
Cancel
Save