File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/primeng/src/select Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments