Commit c5d76d79 authored by 杨奕's avatar 杨奕 Committed by GitHub

Select: fix an emptyText visibility bug (#9969)

parent f5aefcdb
...@@ -115,7 +115,12 @@ ...@@ -115,7 +115,12 @@
</el-option> </el-option>
<slot></slot> <slot></slot>
</el-scrollbar> </el-scrollbar>
<p class="el-select-dropdown__empty" v-if="emptyText && (allowCreate && options.length === 0 || !allowCreate)">{{ emptyText }}</p> <p
class="el-select-dropdown__empty"
v-if="emptyText &&
(!allowCreate || loading || (allowCreate && options.length === 0 ))">
{{ emptyText }}
</p>
</el-select-menu> </el-select-menu>
</transition> </transition>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment