File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -476,6 +476,7 @@ export default class IgcComboComponent<
476476
477477 addThemingController ( this , all ) ;
478478 addSafeEventListener ( this , 'blur' , this . _handleBlur ) ;
479+ addSafeEventListener ( this , 'focusin' , this . _handleFocusIn ) ;
479480
480481 // TODO
481482 this . addEventListener (
@@ -638,6 +639,10 @@ export default class IgcComboComponent<
638639 this . clearSingleSelection ( ) ;
639640 }
640641
642+ protected _handleFocusIn ( ) {
643+ this . _setTouchedState ( ) ;
644+ }
645+
641646 protected override _handleBlur ( ) {
642647 if ( this . _selection . isEmpty ) {
643648 this . _displayValue = '' ;
Original file line number Diff line number Diff line change @@ -314,6 +314,7 @@ export default class IgcSelectComponent extends FormAssociatedRequiredMixin(
314314 . set ( enterKey , this . _handleEnter ) ;
315315
316316 addSafeEventListener ( this , 'keydown' , this . _handleSearch ) ;
317+ addSafeEventListener ( this , 'focusin' , this . _handleFocusIn ) ;
317318 addSafeEventListener ( this , 'focusout' , this . _handleFocusOut ) ;
318319 }
319320
@@ -429,6 +430,10 @@ export default class IgcSelectComponent extends FormAssociatedRequiredMixin(
429430
430431 //#region Event listeners
431432
433+ private _handleFocusIn ( ) : void {
434+ this . _setTouchedState ( ) ;
435+ }
436+
432437 private _handleFocusOut ( { relatedTarget } : FocusEvent ) : void {
433438 if ( this . contains ( relatedTarget as Node ) ) {
434439 return ;
You can’t perform that action at this time.
0 commit comments