Skip to content

Commit

Permalink
Add suppressHydrationWarning to SelectMenu (#2800)
Browse files Browse the repository at this point in the history
  • Loading branch information
matzimowski authored Mar 20, 2024
1 parent 6868372 commit f9abc6a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/select-menu/SelectMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,12 @@ const SelectMenu = React.forwardRef<HTMLDivElement, SelectMenuPropsType>(
const interactionsFloatingProps = interactions.getFloatingProps();

return (
<div id={wrapperId} className={selectClass} onClick={onClick}>
<div
id={wrapperId}
className={selectClass}
onClick={onClick}
suppressHydrationWarning
>
<div
ref={selectRef}
id={id}
Expand All @@ -424,6 +429,7 @@ const SelectMenu = React.forwardRef<HTMLDivElement, SelectMenuPropsType>(
aria-expanded={isExpanded}
aria-haspopup="listbox"
data-status={status}
suppressHydrationWarning
{...interactions.getReferenceProps({
// Handle keyboard
onKeyDown(event) {
Expand Down

0 comments on commit f9abc6a

Please sign in to comment.