Skip to content
This repository has been archived by the owner on Jul 30, 2018. It is now read-only.

Node ordering incorrect when returning DNode[] #930

Closed
nicknisi opened this issue Jun 3, 2018 · 9 comments
Closed

Node ordering incorrect when returning DNode[] #930

nicknisi opened this issue Jun 3, 2018 · 9 comments
Assignees
Milestone

Comments

@nicknisi
Copy link
Member

nicknisi commented Jun 3, 2018

Bug

Package Version: 2.0.0

Code

an example of this issue can be found at https://github.com/aldyn/dojo-tree.

Expected behavior:

The injected nodes would be placed in the order, next to their sibling

Actual behavior:

When a widget that returns a DNode[] is invalidated, any additional rows not part of the initial render are placed at the end of the parent node and not in the correct position next to the sibling.

@szwoelf
Copy link

szwoelf commented Jun 7, 2018

Hi! Unfortunately this does not completely fix the issue.
It works now in the example above but only for the first open.
If you close and open the 2nd entry once again the subnodes will be displayed at the top of the tree.
Kind Regards, Simon + Aldin

@agubler
Copy link
Member

agubler commented Jun 7, 2018

@szwoelf Thanks for the feedback - we'll take another look.

@agubler agubler reopened this Jun 7, 2018
@agubler
Copy link
Member

agubler commented Jun 7, 2018

@szwoelf I have reopened the issue.

@agubler
Copy link
Member

agubler commented Jun 7, 2018

@szwoelf Thanks for reporting the issue, we have identified the cause and fix so should be able to raise the changes today:

rendering-nodes

@agubler
Copy link
Member

agubler commented Jun 7, 2018

@szwoelf We have added a change to widget-core/master that should fix this latest issue - Before we go ahead a publish a new release, it would be great if you could test this to make sure it covers the scenarios expected. Is this something that you are able to do?

@szwoelf
Copy link

szwoelf commented Jun 7, 2018

Hi Anthony!
We'll try this ...
:-)

And thx for the video ...

@szwoelf
Copy link

szwoelf commented Jun 7, 2018

Hi Anthony!
We copied a built version of vdom.js into our node_modules. The Tree issue is fixed now.

But: when navigating with the buttons the buttons "jump" from the top of the page to the "bottom" which is not the correct order.
Click on "Test1" and then on the "TreeView" ... then the buttons are at the bottom.
Reload will move them to the top. Unfortunately this makes this version of widget-core unusable for us because sometimes this messes up the whole GUI.

P.S.: adding a key property to all of the buttons did not help.

Thanks again and kind regards,
Aldin + Simon

@agubler
Copy link
Member

agubler commented Jun 7, 2018

Ah right thanks, more things to look into then

@szwoelf
Copy link

szwoelf commented Jun 7, 2018

Excellent ;-) Thanks again

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants