Commit 954caf12 authored by pcf's avatar pcf Committed by 杨奕

Select: fix delete-tag

parent a3dca68f
...@@ -647,7 +647,7 @@ Create and select new items that are not included in select options ...@@ -647,7 +647,7 @@ Create and select new items that are not included in select options
|---------|---------|---------| |---------|---------|---------|
| change | triggers when the selected value changes | current selected value | | change | triggers when the selected value changes | current selected value |
| visible-change | triggers when the dropdown appears/disappears | true when it appears, and false otherwise | | visible-change | triggers when the dropdown appears/disappears | true when it appears, and false otherwise |
| delete-tag | triggers when deletes tag in multiple mode | deleted tag value | | delete-tag | triggers when a tag is deleted in multiple mode | deleted tag value |
### Option Group Attributes ### Option Group Attributes
| Attribute | Description | Type | Accepted Values | Default | | Attribute | Description | Type | Accepted Values | Default |
......
...@@ -599,8 +599,8 @@ ...@@ -599,8 +599,8 @@
deleteTag(event, tag) { deleteTag(event, tag) {
let index = this.selected.indexOf(tag); let index = this.selected.indexOf(tag);
if (index > -1 && !this.disabled) { if (index > -1 && !this.disabled) {
let deletedTag = this.value.splice(index, 1)[0]; this.value.splice(index, 1);
this.$emit('delete-tag', deletedTag); this.$emit('delete-tag', tag);
} }
event.stopPropagation(); event.stopPropagation();
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment