Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/react/src/checkbox/root/CheckboxRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ export const CheckboxRoot = React.forwardRef(function CheckboxRoot(
{!checked && !groupContext && name && !parent && uncheckedValue !== undefined && (
<input type="hidden" form={form} name={name} value={uncheckedValue} />
)}
<input {...inputProps} />
<input {...inputProps} suppressHydrationWarning />
</CheckboxRootContext.Provider>
);
});
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/combobox/root/AriaCombobox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1280,6 +1280,7 @@ export function AriaCombobox<Value = any, Mode extends SelectionMode = 'none'>(
style={hiddenInputName ? visuallyHiddenInput : visuallyHidden}
tabIndex={-1}
aria-hidden
suppressHydrationWarning
/>
{hiddenInputs}
</React.Fragment>
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/number-field/root/NumberFieldRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,7 @@ export const NumberFieldRoot = React.forwardRef(function NumberFieldRoot(
aria-hidden
tabIndex={-1}
style={name ? visuallyHiddenInput : visuallyHidden}
suppressHydrationWarning
/>
</NumberFieldRootContext.Provider>
);
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/radio/root/RadioRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export const RadioRoot = React.forwardRef(function RadioRoot<Value>(
) : (
element
)}
<input {...inputProps} />
<input {...inputProps} suppressHydrationWarning />
</RadioRootContext.Provider>
);
}) as {
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/select/root/SelectRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@ export function SelectRoot<Value, Multiple extends boolean | undefined = false>(
style={name ? visuallyHiddenInput : visuallyHidden}
tabIndex={-1}
aria-hidden
suppressHydrationWarning
/>
{hiddenInputs}
</SelectFloatingContext.Provider>
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/slider/thumb/SliderThumb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ export const SliderThumb = React.forwardRef(function SliderThumb(
children: (
<React.Fragment>
{childrenProp}
<input ref={mergedInputRef} {...inputProps} />
<input ref={mergedInputRef} {...inputProps} suppressHydrationWarning />
{inset &&
isHydrating &&
renderBeforeHydration &&
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/switch/root/SwitchRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export const SwitchRoot = React.forwardRef(function SwitchRoot(
{!checked && name && uncheckedValue !== undefined && (
<input type="hidden" form={form} name={name} value={uncheckedValue} />
)}
<input {...inputProps} />
<input {...inputProps} suppressHydrationWarning />
</SwitchRootContext.Provider>
);
});
Expand Down
Loading