Explorar el Código

Merge pull request #2007 from Leopoldthecoder/select-disable

Select: fix disabled multiple tag delete
baiyaaaaa hace 8 años
padre
commit
85a03183f3
Se han modificado 1 ficheros con 1 adiciones y 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();