Skip to content

Commit

Permalink
fix(pro:search): zIndex should be updated only when focused change
Browse files Browse the repository at this point in the history
  • Loading branch information
sallerli1 committed Dec 14, 2022
1 parent 84d0e66 commit 5b4bdcd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/pro/search/src/ProSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ export default defineComponent({
activeSegmentContext,
)

//TODO: fix ref(true)
const currentZIndex = useZIndex(toRef(props, 'zIndex'), toRef(componentCommon, 'overlayZIndex'), ref(true))
const currentZIndex = useZIndex(toRef(props, 'zIndex'), toRef(componentCommon, 'overlayZIndex'), focused)

const { initSearchStates, clearSearchState } = searchStateContext
const { activeSegment } = activeSegmentContext
Expand Down

0 comments on commit 5b4bdcd

Please sign in to comment.