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

Focused elements prevent refresh #146

Closed
jbrooksuk opened this issue Oct 9, 2013 · 3 comments
Closed

Focused elements prevent refresh #146

jbrooksuk opened this issue Oct 9, 2013 · 3 comments

Comments

@jbrooksuk
Copy link
Contributor

At least on OSX with Chrome, pressing Super+R when inside an element will prevent the page refresh from occurring. Native elements don't do this, so it breaks convention. Perhaps have it as an option, default to allow refresh.

@brianreavis
Copy link
Member

I'm having troubles replicating with the current version (0.8.0). Is it still a problem?

@ctaschereau
Copy link

I can confirm that this problem still occurs even on 0.8.4 (and on the version at http://brianreavis.github.io/selectize.js/), at least, on Windows with Chrome.

The bug appears to only apply to single item selects. Ex on your exemple page: Single Item Select.
Simply select one entry, then, reclick on the select control (the caret will the position itself at the end of the text) and the dropdown will open. In that scenario, hitting F5 does nothing. Reclicking on the control to collapse the dropdown does not allow F5 to work either.

Also, F1 does not trigger the browser's help in those scenarios, but that is of very low importance compared to the page refresh ;)

@brianreavis
Copy link
Member

I don't think the F1-12 keys can be fixed, unfortunately. Detecting their keyCodes is kind of a no-no (given how keyCodes are inconsistent across browsers).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants