Skip to content

Commit

Permalink
Fixed #6388
Browse files Browse the repository at this point in the history
  • Loading branch information
Çağatay Çivici authored and Çağatay Çivici committed Sep 18, 2018
1 parent ef92229 commit f71dcd8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/app/components/dropdown/dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,16 +424,17 @@ export class Dropdown implements OnInit,AfterViewInit,AfterContentInit,AfterView
if(!this.itemClick && !this.clearClick) {
this.focusViewChild.nativeElement.focus();

if(this.overlayVisible)
if(this.overlayVisible) {
this.hide();
}
else {
this.show();

if (this.filterViewChild != undefined) {
setTimeout(() => {
setTimeout(() => {
if (this.filterViewChild != undefined) {
this.filterViewChild.nativeElement.focus();
}, 200);
}
}
}, 200);
}
}
}
Expand Down

0 comments on commit f71dcd8

Please sign in to comment.