File tree 3 files changed +13
-2
lines changed
3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## HEAD (unreleased)
4
4
5
+ - Enhancement (` ngx-toggle ` ): Added ` timeStamp ` when emiting ` change `
6
+ - Enhancement (` ngx-checkbox ` ): Added ` timeStamp ` when emiting ` change `
7
+
5
8
## 48.0.3 (2024-09-17)
6
9
7
10
- 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 {
129
129
} ;
130
130
131
131
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 ) ;
133
137
}
134
138
}
Original file line number Diff line number Diff line change @@ -145,6 +145,10 @@ export class ToggleComponent implements ControlValueAccessor {
145
145
} ;
146
146
147
147
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 ) ;
149
153
}
150
154
}
You can’t perform that action at this time.
0 commit comments