react-spectrum icon indicating copy to clipboard operation
react-spectrum copied to clipboard

Native iOS keyboard select does not appear when tapping on useSelect example

Open Catchpowle opened this issue 5 years ago โ€ข 2 comments

๐Ÿ› Bug Report

Native iOS keyboard select does not appear when tapping on useSelect example within the docs on an iPhone https://react-spectrum.adobe.com/react-aria/useSelect.html

๐Ÿค” Expected Behavior

I think the native iOS keyboard select should appear.

๐Ÿ˜ฏ Current Behavior

The custom dropdown appears, but this is quite small on mobile.

๐Ÿ’ Possible Solution

๐Ÿ”ฆ Context

๐Ÿ’ป Code Sample

If you visit this page on an iPhone and tap on the Select to test https://react-spectrum.adobe.com/react-aria/useSelect.html

๐ŸŒ Your Environment

Software Version(s)
react-spectrum Docs
Browser iOS Safari
Operating System iPhone XS iOS 14.2

๐Ÿงข Your Company/Team

๐Ÿ•ท Tracking Issue (optional)

Catchpowle avatar Dec 31 '20 17:12 Catchpowle

React Aria is designed to allow you to create your own custom styled components. While that particular example isn't mobile optimized, it should be possible to build such a layout yourself, or even switch to a native select on mobile yourself if you like.

For example, React Spectrum's Picker component displays a custom tray on mobile.

devongovett avatar Dec 31 '20 18:12 devongovett

Thanks for replying, I was just wondering if there was some pattern that had been missed in the example with the HiddenSelect, that would cause the native keyboard to be triggered on mobile, but makes sense that this is left to userland :)

Catchpowle avatar Dec 31 '20 19:12 Catchpowle