Skip to content

Commit

Permalink
fix(pro:search): container zIndex shouldn't be set when not focused (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sallerli1 committed Jan 8, 2024
1 parent 7a1cd70 commit 613079d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 5 additions & 3 deletions packages/pro/search/src/ProSearch.tsx
Expand Up @@ -134,9 +134,11 @@ export default defineComponent({
})
})
const containerStyle = computed(() =>
normalizeStyle({
zIndex: currentZIndex.value,
}),
focused.value
? normalizeStyle({
zIndex: currentZIndex.value,
})
: undefined,
)

expose({ focus, blur })
Expand Down
1 change: 0 additions & 1 deletion packages/pro/search/style/index.less
Expand Up @@ -35,7 +35,6 @@

&-input-container {
position: relative;
z-index: 1000;
flex: auto;
align-self: flex-start;
width: 0;
Expand Down

0 comments on commit 613079d

Please sign in to comment.