Deselect a tag if it is selected when removing (#9614)

This commit is contained in:
Keith Holliday
2017-11-30 15:45:14 -06:00
committed by GitHub
parent d9e09a5f3d
commit 7797794cd5

View File

@@ -407,6 +407,9 @@ export default {
this.newTag = null;
},
removeTag (index, key) {
const tagId = this.tagsSnap[key][index].id;
const indexInSelected = this.selectedTags.indexOf(tagId);
if (indexInSelected !== -1) this.$delete(this.selectedTags, indexInSelected);
this.$delete(this.tagsSnap[key], index);
},
saveTags () {