Skip to content

Commit 9ce7622

Browse files
fix: fixes #19047
1 parent 14394b6 commit 9ce7622

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/primeng/src/select/select.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,13 +1340,13 @@ export class Select extends BaseInput<SelectPassThrough> implements AfterViewIni
13401340
return;
13411341
}
13421342

1343-
this.focusInputViewChild?.nativeElement.focus({ preventScroll: true });
1344-
13451343
if (event.target.tagName === 'INPUT' || event.target.getAttribute('data-pc-section') === 'clearicon' || event.target.closest('[data-pc-section="clearicon"]')) {
13461344
return;
13471345
} else if (!this.overlayViewChild || !this.overlayViewChild.el.nativeElement.contains(event.target)) {
13481346
this.overlayVisible ? this.hide(true) : this.show(true);
13491347
}
1348+
1349+
this.focusInputViewChild?.nativeElement.focus({ preventScroll: true });
13501350
this.onClick.emit(event);
13511351
this.clicked.set(true);
13521352
this.cd.detectChanges();

0 commit comments

Comments
 (0)