Skip to content

Commit

Permalink
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/angular.ts
Original file line number Diff line number Diff line change
@@ -272,7 +272,10 @@ export class Select2 implements ControlValueAccessor {
}

focuskeeper() {
this._keeper = true
this._keeper = true;
setTimeout(() => {
this._keeper = false;
}, common.timeout);
}

focusout(field: string) {
@@ -352,8 +355,8 @@ export class Select2 implements ControlValueAccessor {
} else {
this.option = option;
this.isOpen = false;
this.focuskeeper();
this.selectionElement.focus();
this.focuskeeper();
}
}

0 comments on commit 27bf8e5

Please sign in to comment.