Commit 6baad36
committed
Mark autocomplete as non-modal
Without this property, since react-aria 3.41.0, the value of the
input would be cleared after every keypress.
The documentation for `AriaPopoverProps` at [1] says about the
`isNonModal` prop:
> Whether the popover is non-modal, i.e. elements outside the popover
> may be interacted with by assistive technologies.
>
> Most popovers should not use this option as it may negatively
> impact the screen reader experience. Only use with components such
> as combobox, which are designed to handle this situation carefully.
Since this use case is a combobox, this should be fine.
[1] https://react-spectrum.adobe.com/react-aria/usePopover.html1 parent bfb96f9 commit 6baad36
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| |||
0 commit comments