Open nnmax opened 5 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
select | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jan 8, 2024 6:10am |
If there are any problems, I am willing to actively update this PR until it is merged.
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
c93ff10
) 99.78% compared to head (0a8c1d7
) 99.78%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Since Select always has the search input, seems it will confuse the reader to check the real value holder if search input exist. Could it to add aria value on the search input instead to patch another input?
Since Select always has the search input, seems it will confuse the reader to check the real value holder if search input exist. Could it to add aria value on the search input instead to patch another input?
What aria value should I add to the search input?
any update on this?
Related
790
ant-design/ant-design#36489
💡 Background and solution
<Select />
is a form element which should have the ability to interact with the form.Ant Design is a great project that has brought great convenience to front-end developers all over the world.
However, until now, Ant Design's
<Select />
still doesn't support this functionality. We had to use some hacks to implement it:This PR implements the above functionality and simply passes in
nativeInputProps
to do so:The above code renders a hidden input DOM to receive form related attributes. In case of
<Select />
withmultiple
ortags
mode, the value of the input is a comma-separated string.The type of
nativeInputProps
isReact.InputHTMLAttributes<HTMLInputElement>
, which accepts all input props.