Skip to content

Commit

Permalink
Fixed #15335 - Dropdown | Focus lost after using tab to select dropdo…
Browse files Browse the repository at this point in the history
…wn item
  • Loading branch information
mehmetcetin01140 committed Jul 12, 2024
1 parent e142de6 commit ef3046b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/app/components/dropdown/dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1438,10 +1438,14 @@ export class Dropdown implements OnInit, AfterViewInit, AfterContentInit, AfterV
}
if (isFocus) {
if (this.focusInputViewChild) {
DomHandler.focus(this.focusInputViewChild?.nativeElement);
setTimeout(() => {
DomHandler.focus(this.focusInputViewChild?.nativeElement);
});
}
if (this.editable && this.editableInputViewChild) {
DomHandler.focus(this.editableInputViewChild?.nativeElement);
setTimeout(() => {
DomHandler.focus(this.editableInputViewChild?.nativeElement);
});
}
}
this.cd.markForCheck();
Expand Down

0 comments on commit ef3046b

Please sign in to comment.