You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current behavior:
Let's say we have an app, which uses the component simple-component. This component is placed inside container which is added/removed conditionally. This component uses @child() decorator to reference an input element.
On initial load, reference in myInput property is correct. But if we click "Toggle Containers" button two times (to remove and add cointainer-1 element to the DOM again) then myInput property points to null. I noticed that current behaviour is caused by this commit: 7989015. In previous versions of this plugin everything worked fine, even in scenario described above.
Expected/desired behavior:
What is the expected behavior?
Component's property decorated with @child decorator should reference appropriate element even if component's parents are added or removed conditionally.
The text was updated successfully, but these errors were encountered:
This seems to be a bug in .bind() of the the observer, unable to set the value again when .bind() again after .unbind()
@mazur33k thanks for reporting this
I'm submitting a bug report
1.10.2
Please tell us about your environment:
Operating System:
Windows 10
Node Version:
10.16.3
NPM Version:
6.12.0
JSPM OR Webpack AND Version
JSPM 0.16.53
Browser:
all
Language:
all
Current behavior:
Let's say we have an app, which uses the component
simple-component
. This component is placed inside container which is added/removed conditionally. This component uses@child()
decorator to reference aninput
element.app.html
app.ts
simple-component.html
simple-component.ts
On initial load, reference in
myInput
property is correct. But if we click "Toggle Containers" button two times (to remove and addcointainer-1
element to the DOM again) thenmyInput
property points tonull
. I noticed that current behaviour is caused by this commit: 7989015. In previous versions of this plugin everything worked fine, even in scenario described above.Expected/desired behavior:
Component's property decorated with
@child
decorator should reference appropriate element even if component's parents are added or removed conditionally.The text was updated successfully, but these errors were encountered: