You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
keep consistency with HTML standard, as <select> is allowed to have a name attribute (Specification docs)
❌ <Select name="some_value" />. // select from https://github.com/react-component/select
✅ <select name="some_value" /> // regular input element
What is the expected behavior?
You should be able to pass name prop to <Select> element. The name name prop, should get passed down to the input element that gets rendered in the DOM.
i think we need to modify Input.tsx file so the name prop that is passed into <Select> gets passed down to <Input>?
Hi team,
Reproduction link (click button below)
Summary
Allow
name
prop to be passed to<Select>
What is the bug?
You cannot pass
name
prop to<Select>
Stackblitz code example: https://stackblitz.com/edit/react-ts-zfrvws?file=App.tsx
Motivation for Change
<Input>
( https://github.com/react-component/input) which supports passingname
prop, which allows follows standard HTML behavior/expectations<select>
is allowed to have aname
attribute (Specification docs)What is the expected behavior?
name
prop to<Select>
element. The namename
prop, should get passed down to theinput
element that gets rendered in the DOM.name
prop that is passed into<Select>
gets passed down to<Input>
?Related
name
prop to be passed to<Select>
#793The text was updated successfully, but these errors were encountered: