Skip to content

Commit

Permalink
Merge pull request #16010 from primefaces/issue-15335
Browse files Browse the repository at this point in the history
Fixed #15335 - Dropdown | Focus lost after using tab to select dropdo…
  • Loading branch information
cetincakiroglu authored Jul 18, 2024
2 parents 8446c5b + ef3046b commit 72fc52f
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 72fc52f

Please sign in to comment.