🐛 Bug report
Current Behavior
Setting the required field of ListboxInput to true will not generate a warning when the field is not yet filled in.
Expected behavior
Submitting without empty input needs to show warning message.

Reproducible example
https://codesandbox.io/s/bugreport-6ktgns?file=/src/index.js
Suggested solution(s)
|
readOnly |
|
required={required} |
|
tabIndex={-1} |
|
type="hidden" |
If required field is set, remove readonly and hidden. And input tags should be hidden by opacity, etc.
Additional context
Your environment
| Software |
Name(s) |
Version |
| Reach Package |
|
^0.17.0 |
| React |
|
^17.0.2 |
| Browser |
|
|
| Assistive tech |
|
|
| Node |
|
|
| npm/yarn |
|
|
| Operating System |
linux |
|
🐛 Bug report
Current Behavior
Setting the required field of ListboxInput to true will not generate a warning when the field is not yet filled in.
Expected behavior
Submitting without empty input needs to show warning message.
Reproducible example
https://codesandbox.io/s/bugreport-6ktgns?file=/src/index.js
Suggested solution(s)
reach-ui/packages/listbox/src/index.tsx
Lines 311 to 314 in cc1ef74
If required field is set, remove readonly and hidden. And input tags should be hidden by opacity, etc.
Additional context
Your environment