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
@ -726,7 +726,8 @@ export function setStylingMapsSyncFn(fn: SyncStylingMapsFn) {
|
||||
export const setStyle: ApplyStylingFn =
|
||||
(renderer: Renderer3 | null, native: RElement, prop: string, value: string | null) => {
|
||||
if (renderer !== null) {
|
||||
if (value) {
|
||||
// Use `isStylingValueDefined` to account for falsy values that should be bound like 0.
|
||||
if (isStylingValueDefined(value)) {
|
||||
// opacity, z-index and flexbox all have number values
|
||||
// and these need to be converted into strings so that
|
||||
// they can be assigned properly.
|
||||
|
Reference in New Issue
Block a user