Skip to content

Commit

Permalink
🚑 - fix: remove redundant FloatingPortal
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvandescheur committed Mar 4, 2024
1 parent 48e0be7 commit 5f2fb72
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions src/components/form/select/select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -388,18 +388,16 @@ const BaseSelectDropdown: React.FC<SelectDropdownProps> = ({

return (
open && (
<FloatingPortal>
<FloatingFocusManager context={context} modal={false}>
<div
ref={forwardedRef}
className="mykn-select__dropdown"
style={floatingStyles}
{...getFloatingProps()}
>
{renderOptions()}
</div>
</FloatingFocusManager>
</FloatingPortal>
<FloatingFocusManager context={context} modal={false}>
<div
ref={forwardedRef}
className="mykn-select__dropdown"
style={floatingStyles}
{...getFloatingProps()}
>
{renderOptions()}
</div>
</FloatingFocusManager>
)
);
};
Expand Down

0 comments on commit 5f2fb72

Please sign in to comment.