Skip to content

Commit

Permalink
fix(): add correct log in number-value-accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
nobilo committed Oct 21, 2022
1 parent 37d47db commit 07d514f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export class NumericValueAccessor extends ValueAccessor {
}
registerOnChange(fn: (_: number | null) => void) {
super.registerOnChange(value => {
console.log('registerOnChange called with: ', value)
fn(value === '' ? null : parseFloat(value))
})
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export class NumericValueAccessor extends ValueAccessor {
}
registerOnChange(fn: (_: number | null) => void) {
super.registerOnChange(value => {
console.log('registerOnChange called with: ', value)
fn(value === '' ? null : parseFloat(value))
})
}
Expand Down

0 comments on commit 07d514f

Please sign in to comment.