-
Notifications
You must be signed in to change notification settings - Fork 930
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
Can't unfocus on mobile #32
Comments
I can reproduce it on iOS on both Chrome and Safari. The input seems to keep focus and the keyboard can't be closed. |
Oh, that's odd. And that's how it works on native (no simulated) iOS as well? We definitely want to fix that! Could you dig into it a little bit? |
I tested only on real device so I'd say "yes" |
Interesting. I can confirm this issue. |
Alrighty! Who wants to fix it? 😄 |
@kentcdodds I want 🤘 |
I skimmed through this. The bug seems to be resolved when commenting this line out: https://github.com/paypal/react-autocompletely/blob/008129dca3da8ef7e118fd1bbc93c7cad55dc6d5/src/input.js#L77 When the input is blurred, Im guessing You can even see this in action in the gif at: #32 (comment) FYI, I debugged this in Safari. @kentcdodds what was the reason for moving the cursor to the end after resetting? @psicotropicos I'm wondering if you've reached similar findings. Since you've called dibs on this, I'd let you PR this if this is the proper fix 👍 |
@dashed This was the same solution I found so far. |
You know, I think that we probably don't need that. At least not in the core library. People could implement it themselves if they need. Let's remove that code 👍 Thanks! |
Who wants to do that? |
I will send the PR |
This has been fixed. I'll push another beta release as soon as I get the rest of the PRs merged. |
react-autocompletely
version:node
version:npm
(oryarn
) version:Relevant code or config
https://codesandbox.io/s/9rWEmzEv8
What you did:
Open it on an iPhone, try to press "done", but it doesn't dismiss the focusing
What happened:
Input is permanently focused, not even the url bar is accessible. Can get the focus back out of it when pressing refresh only
Reproduction repository:
https://codesandbox.io/s/9rWEmzEv8
Problem description:
Suggested solution:
Allow the input to blur
The text was updated successfully, but these errors were encountered: