fix(ivy): unable to bind style zero (#32994)
Fixes not being able to bind zero as a value in style bindings. Fixes #32984. PR Close #32994
This commit is contained in:

committed by
Alex Rickabaugh

parent
c61e4d7841
commit
3efb060127
@ -180,7 +180,8 @@ export function hasValueChanged(
|
||||
/**
|
||||
* Determines whether the provided styling value is truthy or falsy.
|
||||
*/
|
||||
export function isStylingValueDefined(value: any) {
|
||||
export function isStylingValueDefined<T extends string|number|{}|null>(value: T):
|
||||
value is NonNullable<T> {
|
||||
// the reason why null is compared against is because
|
||||
// a CSS class value that is set to `false` must be
|
||||
// respected (otherwise it would be treated as falsy).
|
||||
|
Reference in New Issue
Block a user