浏览代码

select:fixed #2890 placeholder recover after options clear

thomasyonug 8 年之前
父节点
当前提交
080a996f3f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/select/src/select.vue

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

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