Skip to content

Commit 89655c1

Browse files
committed
Avoid conflict between show and hide
1 parent b35a43e commit 89655c1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/parts/suggestions.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,10 @@ export default {
302302
// catch and use addTags() instead. This happens only once
303303
if(_s.mode == 'select' && !this.state.composing && this.userInput) {
304304
this.addTags(value, true)
305-
closeOnSelect && this.dropdown.hide()
306-
setTimeout(()=> this.DOM.scope.querySelector('.' + _s.classNames.tagText).focus(), 0) //set the focus back to input on each select to ensure consistent behavior
305+
setTimeout(() => {
306+
closeOnSelect && this.dropdown.hide()
307+
this.DOM.scope.querySelector('.' + _s.classNames.tagText).focus() //set the focus back to input on each select to ensure consistent behavior
308+
}, 0)
307309
return;
308310
}
309311

0 commit comments

Comments
 (0)