File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed
Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -119,13 +119,10 @@ export class IgcCheckboxBaseComponent extends FormAssociatedCheckboxRequiredMixi
119119 protected _handleClick ( event : PointerEvent ) : void {
120120 event . stopPropagation ( ) ;
121121
122+ this . _setTouchedState ( ) ;
122123 this . checked = ! this . checked ;
123124 this . emitEvent ( 'igcChange' , {
124125 detail : { checked : this . checked , value : this . value } ,
125126 } ) ;
126127 }
127-
128- protected _handleFocus ( ) : void {
129- this . _dirty = true ;
130- }
131128}
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ export default class IgcCheckboxComponent extends IgcCheckboxBaseComponent {
108108 aria-labelledby=${ labelledBy ? labelledBy : this . _labelId }
109109 aria-describedby=${ describedBy }
110110 @click=${ this . _handleClick }
111- @focus =${ this . _handleFocus }
111+ @blur =${ this . _handleBlur }
112112 />
113113 < span part =${ partMap ( { control : true , checked } ) } >
114114 < span part =${ partMap ( { indicator : true , checked } ) } >
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ export default class IgcSwitchComponent extends IgcCheckboxBaseComponent {
5858 .checked=${ live ( checked ) }
5959 aria-labelledby=${ labelledBy ? labelledBy : this . _labelId }
6060 @click=${ this . _handleClick }
61- @focus =${ this . _handleFocus }
61+ @blur =${ this . _handleBlur }
6262 />
6363 < span
6464 part =${ partMap ( {
You can’t perform that action at this time.
0 commit comments