浏览代码

Merge pull request #2007 from Leopoldthecoder/select-disable

Select: fix disabled multiple tag delete
baiyaaaaa 8 年之前
父节点
当前提交
85a03183f3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/select/src/select.vue

+ 1 - 1
packages/select/src/select.vue

@@ -554,7 +554,7 @@
 
       deleteTag(event, tag) {
         let index = this.selected.indexOf(tag);
-        if (index > -1) {
+        if (index > -1 && !this.disabled) {
           this.value.splice(index, 1);
         }
         event.stopPropagation();