Replies: 1 comment
-
Looking at the example included in those docs, it doesn't actually seem like focus remains in the input field at all times aka once you move into the Dialog focus leaves the input. That means it doesn't directly follow the aria active-descendant pattern our combobox hooks implements where focus remains in the input and the listbox shows "virtual" focus. As such, my gut feeling is that you'd need to create your own hooks for this pattern, cherry picking some stuff from the useComboBox hooks like the keyboard/press handling for opening the popover, some of the input aria props, etc. The Dialog in this case wouldn't use All in all, I don't think you'd be able to just use the existing hooks + RAC as is, there is probably a fair amount of customization/tweaking that you'd have to do. |
Beta Was this translation helpful? Give feedback.
-
hello 👋
DatePicker component seems to implement Date Picker Dialog example from APG.
I'm wondering if there's support for Date Picker Combobox pattern. I'm interested in editing the input field while Calendar stays open. Would that be possible to compose using RAC or React Aria hooks? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions