Skip to content

Commit

Permalink
fix: revert "fix: select-field not showing in correct place" (#1614)
Browse files Browse the repository at this point in the history
This reverts commit 7d27d71.
  • Loading branch information
kabaros authored Oct 1, 2024
1 parent 1373298 commit c83de6b
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 71 deletions.
2 changes: 1 addition & 1 deletion components/select/src/select/menu-wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const MenuWrapper = ({
selectRef,
}) => {
return (
<Layer onBackdropClick={onClick} transparent disablePortal>
<Layer onBackdropClick={onClick} transparent>
<Popper
reference={selectRef}
placement="bottom-start"
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -43,42 +43,3 @@ export const WithFilterable = () => (
)
export const WithLoading = () => <SingleSelectField loading />
export const WithoutOptions = () => <SingleSelectField />

export const WithHiddenParent = () => {
return (
<>
<div className="container">
<div className="hoverSpan">
<span>Hover over me</span>
<div className="hiddenSelect">
<SingleSelectField
dataTest="hoverable-select-field"
label="Choose something"
onChange={() => {}}
>
<SingleSelectOption value="1" label="one" />
<SingleSelectOption value="2" label="two" />
</SingleSelectField>
</div>
</div>
</div>
<style jsx>{`
.container {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: 1rem;
}
.hiddenSelect {
display: none;
}
.hoverSpan:hover .hiddenSelect {
display: block;
}
`}</style>
</>
)
}

0 comments on commit c83de6b

Please sign in to comment.