Skip to content
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

location.hash is changed to #! when selecting an option with mouse #103

Closed
drm227 opened this issue Jan 20, 2021 · 2 comments
Closed

location.hash is changed to #! when selecting an option with mouse #103

drm227 opened this issue Jan 20, 2021 · 2 comments

Comments

@drm227
Copy link

drm227 commented Jan 20, 2021

I am using bootstrap-autocomplete with a element, and retrieving options from a REST service using the searchPost event. Everything works fine when I use the keyboard to scroll through the options and select one. But if I use the mouse to select an option, the location.hash value is changed to #! (causing the browser to push an entry onto its history stack). This breaks the hash-based routing that the single page application is using. Stepping through the call stack shows that this is happening when in v.handle in jquery.min.js If there is a workaround, please let me know. Thanks, Dennis

@xcash
Copy link
Owner

xcash commented Jan 20, 2021

Check the version you're using. It's an old behavior.

@drm227
Copy link
Author

drm227 commented Jan 21, 2021

Upgrading from 2.3.5 to 2.3.7 made the problem go away.

Thanks,
Dennis

@drm227 drm227 closed this as completed Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants