Is it possible to have react-select fall back to the native select on mobile devices?
And actually, why is that not the default behaviour?
This isn't the responsibility of react-select, though if you need this behavior you can compose your own component to achieve it.
You'll need some sort of isMobile()
check -- "Detecting a mobile browser"
const MobileAwareSelect = (props) => isMobile() ? (
<select>{props.options.map(...)}</select>
) : (
<ReactSelect {...props} />
);
blurInputOnSelect:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With