pull/2835/head
mertsincan 2022-08-02 14:32:06 +01:00
parent 0ce3151e2d
commit 7b0cdaf392
3 changed files with 5 additions and 9 deletions

View File

@ -471,8 +471,7 @@ export default {
this.$emit('item-select', { originalEvent: event, value: option }); this.$emit('item-select', { originalEvent: event, value: option });
this.$refs.focusInput.focus(); this.hide(true);
this.hide();
}, },
onOptionMouseMove(event, index) { onOptionMouseMove(event, index) {
if (this.focusOnHover) { if (this.focusOnHover) {

View File

@ -369,8 +369,7 @@ export default {
return; return;
} }
else if (!this.overlay || !this.overlay.contains(event.target)) { else if (!this.overlay || !this.overlay.contains(event.target)) {
this.overlayVisible ? this.hide() : this.show(); this.overlayVisible ? this.hide(true) : this.show(true);
this.$refs.focusInput.focus();
} }
}, },
onClearClick(event) { onClearClick(event) {
@ -392,10 +391,9 @@ export default {
}, },
onOptionSelect(event, option) { onOptionSelect(event, option) {
const value = this.getOptionValue(option); const value = this.getOptionValue(option);
this.updateModel(event, value);
this.$refs.focusInput.focus();
this.hide(); this.updateModel(event, value);
this.hide(true);
}, },
onOptionMouseMove(event, index) { onOptionMouseMove(event, index) {
if (this.focusOnHover) { if (this.focusOnHover) {

View File

@ -403,8 +403,7 @@ export default {
} }
if (!this.overlay || !this.overlay.contains(event.target)) { if (!this.overlay || !this.overlay.contains(event.target)) {
this.overlayVisible ? this.hide() : this.show(); this.overlayVisible ? this.hide(true) : this.show(true);
this.$refs.focusInput.focus();
} }
}, },
onFirstHiddenFocus(event) { onFirstHiddenFocus(event) {