select
select copied to clipboard
Allow `name` prop to be passed to `<Select>`
NOTE: this is a work was a work in progress code change. ❗ Please feel free to edit my pull request. I am not sure where to make all the necessary changes since there are many different variations of this component. I'm also 12 hours behind you so response time is slow (California time)
Summary
Allow name
prop to be passed to <Select>
What is the bug?
Stackblitz example: https://stackblitz.com/edit/react-ts-zfrvws?file=App.tsx
Motivation for Change
- maintain consistency with
<Input>
( https://github.com/react-component/input) which supports passingname
prop, which allows follows standard HTML behavior/expectations✅ <Input name="some_value" />. // input from https://github.com/react-component/input ✅ <input name="some_value" /> // regular input ```
- keep consistency with HTML standard, as
<select>
is allowed to have aname
attribute (Specification docs)
Related
- https://github.com/react-component/select/issues/790
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
select | ✅ Ready (Inspect) | Visit Preview | Aug 6, 2022 at 0:29AM (UTC) |