Skip to content

Commit fd5db61

Browse files
committed
Update StrictReactDOMSelectProps.js
The \`disabled\` prop was missing from \`StrictReactDOMSelectProps\` while present on input, textarea, button, option, and optgroup. \`<select disabled>\` is valid HTML and already worked at runtime (it's in the prop allowlist and handled by the native renderer), so typed consumers hit a false type error. This adds the type declaration; the generated \`.d.ts\` now exposes it to TS consumers too.
1 parent c4e69e0 commit fd5db61

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/react-strict-dom/src/types/StrictReactDOMSelectProps.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export type StrictReactDOMSelectProps = Readonly<{
1313
...StrictReactDOMProps,
1414
autoComplete?: AutoComplete,
1515
defaultValue?: ?(Stringish | Array<Stringish>),
16+
disabled?: ?boolean,
1617
multiple?: ?boolean,
1718
name?: ?string,
1819
required?: ?boolean,

0 commit comments

Comments
 (0)