-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Select element takes focus from input element on react native web on Safari browser #5111
Comments
Hi @jvzTrifork, Thank you for reporting this issue. We will look into it. |
Hi there. We have the exact same problem. Do you have any workarounds? Or when will it be updated? We have a big form and lots of Safari users...but changing it to another Select element is painful... |
We ended up downgrading to version 3.4.6 which does not have this bug. |
Any update on this issue? |
Also experiencing this, version 3.4.19. Does anyone know of a compatible Select element for a replacement? |
Also experiencing this. Has there been any progress made on this issue? |
Any update? |
We have this issue too. I'd appreciate any workaround or fix, or even suggestions to other select libraries. |
After some digging, I've found out the reason is the prop Also, the component works just fine without this prop. Perhaps it should be added only on safari on web. |
not only on Safari, mobile Chrome also has this issue. Any update? |
@lts-po and I made a work around in our codebase for this issue by creating two custom components that inherit Select. The first is basically a no-op but needs to wrap Select from native-base The second is for the web clients Here is the implementation import React from 'react'
import { Select as NBSelect } from 'native-base'
const Select = (props) => {
const isSafari = () =>
/Safari/.test(navigator.userAgent) &&
/Apple Computer/.test(navigator.vendor);
return (
<NBSelect {...props} selection={isSafari() ? 1 : null}/>
);
};
Select.Item = NBSelect.Item
export default Select
export { Select } |
Mobile Chrome for iOS has the same issue. |
Yes confirm. Maybe this problem has disappeared in Glustack-ui? |
Description
Only a single character is accepted on controlled input when a Select element is present
CodeSandbox/Snack link
https://snack.expo.dev/MOBQ7fNEN
Steps to reproduce
NativeBase Version
3.4.7
Platform
Other Platform
Web - Safari
Additional Information
I think it is the internal input element of a Select element which takes focus.
The text was updated successfully, but these errors were encountered: