Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Add disabled prop to StrictReactDOMSelectProps#495

Open
galinski-n wants to merge 1 commit into
react:mainfrom
galinski-n:fix/select-disabled-prop
Open

Add disabled prop to StrictReactDOMSelectProps#495
galinski-n wants to merge 1 commit into
react:mainfrom
galinski-n:fix/select-disabled-prop

Conversation

@galinski-n

Copy link
Copy Markdown

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.

Solves #465

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant