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

Select: fix an emptyText visibility bug (#9969)

parent f5aefcdb
......@@ -115,7 +115,12 @@
</el-option>
<slot></slot>
</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>
</transition>
</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