Selaa lähdekoodia

select:fixed #2890 placeholder recover after options clear

thomasyonug 8 vuotta sitten
vanhempi
commit
080a996f3f
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      packages/select/src/select.vue

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

@@ -221,7 +221,7 @@
 
     watch: {
       placeholder(val) {
-        this.currentPlaceholder = val;
+        this.cachedPlaceHolder = this.currentPlaceholder = val;
       },
 
       value(val) {