We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddb1e00 commit 2c4b1dcCopy full SHA for 2c4b1dc
packages/@react-aria/select/src/HiddenSelect.tsx
@@ -153,14 +153,13 @@ export function HiddenSelect<T>(props: HiddenSelectProps<T>): JSX.Element | null
153
};
154
155
if (validationBehavior === 'native') {
156
- // Use a visually hidden <input type="text"> rather than <input type="hidden">
+ // Use a hidden <input type="text"> rather than <input type="hidden">
157
// so that an empty value blocks HTML form submission when the field is required.
158
return (
159
<input
160
- {...containerProps}
161
{...inputProps}
+ style={{display: 'none'}}
162
type="text"
163
- tabIndex={-1}
164
required={selectProps.required}
165
onChange={() => {/** Ignore react warning. */}}
166
onInvalid={(e) => {
0 commit comments