Explorar o código

Merge pull request #2007 from Leopoldthecoder/select-disable

Select: fix disabled multiple tag delete
baiyaaaaa %!s(int64=8) %!d(string=hai) anos
pai
achega
85a03183f3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();