Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that nodes are inserted in the correct position when nested within widgets #297

Merged

Conversation

agubler
Copy link
Member

@agubler agubler commented Mar 18, 2019

Type: bug

The following has been addressed in the PR:

Description:

In scenarios where there are multiple nested widgets, the child domNode is not applied to the top level widget. This means that when there are two siblings that have nested widgets looking up the domNode for the insert before position does not work.

Additionally, when copying over the associated domNode to the new WNodeWrapper, check that it is still attached to the DOM when updating a widget, if the previous domNode is not attached to the DOM then do not copy over and let the attachment process execute to add the new domNode.

Resolves #296

@agubler agubler added the bug Something isn't working label Mar 18, 2019
@agubler agubler merged commit 65f6ba8 into dojo:master Mar 19, 2019
@agubler agubler added the needs back-port The fix requires back porting to one or more previous major versions label Mar 19, 2019
agubler added a commit to agubler/framework that referenced this pull request Mar 28, 2019
…thin widgets (dojo#297)

* Failing unit test for incorrect node insertion with nested widgets

* Ensure the domNode is set up the tree on all immediate parent WNodeWrappers

* simplify test

* Improve failing unit test scenario

* Only copy over domNode on widget update if there is a parent node
agubler added a commit that referenced this pull request Apr 10, 2019
…thin widgets (#297) (#313)

* Failing unit test for incorrect node insertion with nested widgets

* Ensure the domNode is set up the tree on all immediate parent WNodeWrappers

* simplify test

* Improve failing unit test scenario

* Only copy over domNode on widget update if there is a parent node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs back-port The fix requires back porting to one or more previous major versions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants