Skip to content

Conversation

cybrox
Copy link
Contributor

@cybrox cybrox commented Jun 24, 2019

This is a PR for @archdragon

Instead of styling the auto-complete element on-hover, it adds/removes the selected class via jQuery. This way, it is not possible for the user to have multiple autocomplete results selected.

I noticed this happening when you have your moues idling on the sidebar, hit s, type something and then use the arrow keys for selecting a result.

http://g.recordit.co/or3Lzx3M47.gif

@archdragon
Copy link
Contributor

Thanks!

I've intentionally made mouse hover independent of the keyboard selection (at first it had a slightly different style, but decided it created too much clutter/confusions :) ) since that felt more natural to me - but this is just a personal opinion and I don't really have anything agains changing that behaviour! :D

I don't think that an issue that Jose mentioned in #1028 (hover state "sticking around") exists here - at least I can't reproduce it.

@cybrox
Copy link
Contributor Author

cybrox commented Jun 24, 2019

I see. Yeah, for me it was a bit confusing at first but I could see why it would be separated.

Thanks for testing. :) Considering José is ok with this as well, I'll close this PR and change the quick-switch to work the same way.

@cybrox cybrox closed this Jun 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants