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

Prevent dropdown from showing twice #1414

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/parts/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -1010,8 +1010,13 @@ export default {
break
}
case 'Enter' :
case 'Tab' : {
e.preventDefault()
case 'Tab' : {
// select mode: prevent dropdown from showing twice when user clicks inside the input and then use "Tab" to get out
if(this.settings.mode !== 'select')
e.preventDefault();
else
this.toggleFocusClass(false);

var EDITED_TAG_BLUR_DELAY = 0;

Expand Down