File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed
Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 22
33## HEAD (unreleased)
44
5+ - Enhancement (` ngx-toggle ` ): Added ` timeStamp ` when emiting ` change `
6+ - Enhancement (` ngx-checkbox ` ): Added ` timeStamp ` when emiting ` change `
7+
58## 48.0.3 (2024-09-17)
69
710- Enhancement (` ngx-toggle ` ): Added ` change ` output to align with ` ngx-checkbox `
Original file line number Diff line number Diff line change @@ -129,6 +129,10 @@ export class CheckboxComponent implements ControlValueAccessor {
129129 } ;
130130
131131 private emitChange ( ) {
132- this . change . emit ( { stopPropagation : ( ) => { } , target : { checked : this . _value } } as any ) ;
132+ this . change . emit ( {
133+ stopPropagation : ( ) => { } ,
134+ timeStamp : new CustomEvent ( 'change' ) . timeStamp ,
135+ target : { checked : this . _value }
136+ } as any ) ;
133137 }
134138}
Original file line number Diff line number Diff line change @@ -145,6 +145,10 @@ export class ToggleComponent implements ControlValueAccessor {
145145 } ;
146146
147147 private emitChange ( ) {
148- this . change . emit ( { stopPropagation : ( ) => { } , target : { checked : this . _value } } as any ) ;
148+ this . change . emit ( {
149+ stopPropagation : ( ) => { } ,
150+ timeStamp : new CustomEvent ( 'change' ) . timeStamp ,
151+ target : { checked : this . _value }
152+ } as any ) ;
149153 }
150154}
You can’t perform that action at this time.
0 commit comments