angular/packages/animations/browser/src
dario-piotrowicz 65a28a9ea3 fix(animations): make sure falsy values are added to _globalTimelineStyles (#46863)
style values get added to the `_globalTimelineStyles` map in order to keep
them so that they can be used across different timelines

`_globalTimelineStyles` was previously a plain object but has been
refactored to a map in #44482, as part of the update a check has been
changed from a ternary operation to an or (||), causing falsy values (as 0)
not to be added to the map anymore, apply the nullish coalescing operator (??)
instead to make sure only `undefined` and `null` are filtered out

also since this aspect was clearly not covered by tests, add a new test
to ensure that such regression doesn't happen in the future

resolves #46833

PR Close #46863
2022-07-18 21:46:12 +00:00
..
dsl fix(animations): make sure falsy values are added to _globalTimelineStyles (#46863) 2022-07-18 21:46:12 +00:00
render Revert "fix(animations): enable shadowElements to leave when their parent does (#46459)" (#46739) 2022-07-07 13:51:30 -07:00
browser.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
error_helpers.ts refactor(common): align tree shakable error messages to the new format (#46382) 2022-06-16 09:32:44 -07:00
errors.ts perf(animations): made errors in the animations package tree shakeable (#45004) 2022-02-09 11:43:42 -08:00
private_export.ts perf(animations): improve algorithm to balance animation namespaces (#45057) 2022-02-16 13:48:51 -08:00
util.ts feat(animations): provide warnings for non-animatable CSS properties (#45212) 2022-03-21 14:33:19 -07:00
warning_helpers.ts refactor(animations): refactor non-animatable check to be timeline based (#46666) 2022-07-12 22:36:22 +00:00