angular-cn/packages/animations
JoostK e27ac018ed fix(animations): ensure consistent transition namespace ordering (#19854)
When including a component in a template, the component's host element
is immediately appended as child of the parent node upon creation.
Hence, `hostElement.parentNode` will be a valid reference. However, if
the parent component is being inserted as an embedded view—through
`ngIf` for example—then the parent's node itself will not have been
inserted yet. This means that we cannot properly determine the position
of the transition namespace, as any `containsElement` check will return
false given that the partial DOM tree has not been inserted yet, even
though it will be contained within an existing transition namespace once
the partial tree is attached.

This commit fixes the issue by not just looking at the existence of a
parent node, but rather a more extensive check using the driver's
`containsElement` method.

PR Close #19854
2021-04-30 14:15:47 -07:00
..
browser fix(animations): ensure consistent transition namespace ordering (#19854) 2021-04-30 14:15:47 -07:00
src fix(animations): implement getPosition in browser animation builder (#39983) 2020-12-08 16:24:41 -08:00
test fix(animations): implement getPosition in browser animation builder (#39983) 2020-12-08 16:24:41 -08:00
BUILD.bazel build: provide full paths to `ts_api_guardian_test_npm_package` and `ts_api_guardian_test` (#36034) 2020-03-12 09:49:00 -07:00
PACKAGE.md build(docs-infra): implement the 'package' API template (#24631) 2018-07-13 19:45:54 -04:00
index.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
package.json fix(animations): update supported range of node versions to only include LTS versions (#41822) 2021-04-26 15:21:13 -07:00
public_api.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00