angular
angular copied to clipboard
fix(core): handle elements with local refs in event replay serialization logic
Previously, the event replay serialization logic was located before we verify that a TNode
exists. TNode
s may not exist in tView.data
array in several cases, including cases when there is a local ref used on an element: in this case an extra slot in LView
contains a reference to the same element and TNode
is not needed. This commit moves the event replay serialization logic a bit lower, after we check for TNode
presence.
Resolves #56073.
PR Type
What kind of change does this PR introduce?
- [x] Bugfix
Does this PR introduce a breaking change?
- [ ] Yes
- [x] No