-
Notifications
You must be signed in to change notification settings - Fork 531
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
show search button on ios and close when user hits search #1450
Conversation
By analyzing the blame information on this pull request, we identified @vvo, @pixelastic and @bobylito to be potential reviewers |
From algolia
Sorry. I ran a test now and realize the test needs to be fixed. I guess a new context has to be made since it's no longer wrapped in a div but a form element. Unfortunately I'm not too familiar with writing tests. |
changing line 138 to |
Hi @spoeken could you walk us through the context of your pull request in more details? We understood it has a relation with mobile and searchbox but since we are not active on those subjects (yet), we need to understand your issue, what was not working and how what your propose is solving it. Thanks a lot for contributing |
Also if you could provide maybe a reference link speaking about that mobile fix (stackoverflow/blog) that would help us commenting the code |
@vvo there is a discussion on the subject on SO http://stackoverflow.com/questions/4864167/show-search-button-in-iphone-ipad-safari-keyboard |
The reference @bobylito posted is a good one. The first problem was that the keyboard was showing a The second problem was that when I hit search, the keyboard would not disappear. To fix this I made it so |
There's one thing I am worried about if we do this change is that if a user already had a wrapping @spoeken Do you think in the meantime you could fix this issue by creating your own searchbox? |
@spoeken Looking at it again, if you create a |
@vvo Yes, I thought about that. But I would still need the input type to be set to |
I think if you target a container which is already an input, this should be ok |
@spoeken did you try my proposition to target an already existing input element? Thanks |
@vvo I'll try it out! I have another search box where I wan't to do a redirect on enter, and the solution I proposed here is interfering with it. So I think your suggested approach is better! |
Let's close this until we have a better overview/feedback. Thanks |
This works! Markup.
As it is now, it will trigger blur on desktop as well, which might not be wanted. Thank you for the good feedback and for this great application. Without you this would't be as smooth to make as it was: https://www.vingruppen.no/produkter |
😍 Thanks for feedback too |
No description provided.