Skip to content

Commit

Permalink
fix(pro:search): all tags should be displayed when focused (#1331)
Browse files Browse the repository at this point in the history
overflowed tag shouldn't show when no segment is active under focused state
  • Loading branch information
sallerli1 committed Dec 6, 2022
1 parent 236f691 commit 05478ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/pro/search/src/ProSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,14 @@ export default defineComponent({
<div class={`${prefixCls}-input-container`} style={containerStyle.value}>
<div class={`${prefixCls}-input-content`}>
<ɵOverflow
v-show={!activeSegment.value}
v-show={!focused.value}
v-slots={overflowSlots}
prefixCls={prefixCls}
dataSource={searchItems.value}
getKey={item => item.key}
maxLabel={props.maxLabel}
/>
<div class={`${prefixCls}-search-item-container`} v-show={activeSegment.value}>
<div class={`${prefixCls}-search-item-container`} v-show={focused.value}>
{searchItems.value?.map(item => (
<SearchItemComp key={item.key} searchItem={item} />
))}
Expand Down

0 comments on commit 05478ab

Please sign in to comment.