-
Notifications
You must be signed in to change notification settings - Fork 516
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
Given a query, after refresh, searchBox cursor jumps at the begining of the input #946
Comments
Yes indeed this looks like a bug, can you give me:
Thanks |
|
I am not able to reproduce this on a simple example so it might be one of your scripts conflicting with our input. I would recommend you to double check everywhere you may be or a script may be doing an autofocus the wrong way. |
Yes I guess you will be able to find the bad event maybe from here, otherwise just remove some of the JS scripts from your page and see when it stops doing bad things |
Just reproduced this on the current develop branch:
Cursor is at the begining. Most probably because we fill the query field AFTER autofocus has triggered. |
<a name="1.6.2"></a> ## [1.6.2](v1.6.1...v1.6.2) (2016-07-11) ### Bug Fixes * **paginationLink:** it's aria-label not ariaLabel (#1125) ([70a190c](70a190c)) * **pricesRange:** fill the form according to the current refinement (#1126) ([12ebde7](12ebde7)), closes [#1009](#1009) * **rangeSlider:** handles now support stacking (#1129) ([ad394d3](ad394d3)) * **rangeSlider:** use stats min/max when only user min or max is provided (#1124) ([4348463](4348463)), closes [#1004](#1004) * **searchBox:** force cursor position to be at the end of the query (#1123) ([8a27769](8a27769)), closes [#946](#946) * **searchBox:** IE8, IE9 needs to listen for setQuery ([97c166a](97c166a)) * **searchBox:** update helper query on every keystroke (#1127) ([997c0c2](997c0c2)), closes [#1015](#1015) * **urlSync:** urls should be safe by default (#1104) ([db833c6](db833c6)), closes [#982](#982)
When having
autofocus: true
in the searchBox widget andurlSync
activated in the instantsearch, the search box is populated with the previous search query after a reload happens and the cursor is placed (with focus()?) into the search box input field.In this case I would expect that the cursor is placed at the end of the query and not at the beginning.
The text was updated successfully, but these errors were encountered: