react-spectrum
28ceccbf - ComboBox refactoring (#1176)

Commit
5 years ago
ComboBox refactoring (#1176) * WIP: refactor mobile combobox * ComboBox state refactor * Add live region announcer for more consistent announcement with VoiceOver * Add missing strings to translations files * Updates for mobile combobox and add tests * Add aria-hidden to all elements other than combobox and popover when open * Fix tray size on chrome android * Move ariaHideOutside into @react-aria/overlays * Support placeholder in mobile combobox * Close when clicking on the button a second time * Various code cleanup and ref handling improvements * Correct aria-setsize with sections * Make live announcer behave more consistently * Only use live announcer on apple devices * Preserve defaultInputValue prop on initial render even if the defaultSelectedKey does not match * Remove tabIndex from listbox and options when using virtual focus iOS 14 moves real DOM focus even with aria-activedescendant otherwise * Only blur input on touch scroll * Make clear button not overlap validation icon in searchfield * Pass through style to ComboBoxInput so custom width without label works * Fix disabled styling of mobile combobox * Don't let long values wrap in mobile combobox * Fix page up/page down in combobox * Mobile combobox fixes * Calculate overlay positions based on visual viewport And do not close when viewport scrolls while resizing due to keyboard appearing * Fix custom width * Focus button when clicking on label on mobile * Prevent focus on clear button * Add label for invalid icon on mobile * fix docs build by fixing clearbutton type Co-authored-by: Daniel <dlu@livefyre.com> Co-authored-by: Danni <drobinson@livefyre.com>
Author
Parents
Loading