Skip to content

Commit

Permalink
fix(select): 下拉没有内容的时候没有去除掉dom ul。 #1844 (#1851)
Browse files Browse the repository at this point in the history
  • Loading branch information
aolinpk authored May 26, 2024
1 parent 04035ad commit e2747b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/devui-vue/devui/select/src/select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export default defineComponent({
style={styles.value}
class={props.menuClass}>
<div v-dLoading={isLoading.value} class={dropdownCls}>
<ul class={listCls} v-show={!isLoading.value} ref={dropdownContainer}>
<ul class={listCls} v-show={!isLoading.value && !isShowEmptyText.value} ref={dropdownContainer}>
{isShowCreateOption.value && (
<Option value={filterQuery.value} name={filterQuery.value} create>
{props.multiple ? <Checkbox modelValue={false} label={filterQuery.value} /> : filterQuery.value}
Expand Down

0 comments on commit e2747b8

Please sign in to comment.