dojo / widget-core

:rocket: Dojo 2 - widget authoring system.
http://dojo.io
Other
34 stars 39 forks source link

Fix the algorithm for determining the position to insert new DOM nodes #943

Closed agubler closed 6 years ago

agubler commented 6 years ago

Type: bug

The following has been addressed in the PR:

Description:

Optimistically store the array of "next" siblings for a widget instance to ensure that the correct node can be calculated to insert nodes before. The insert before logic iterates through these siblings and uses the first domNode located before hitting a domNode, if no candidate is found then the node will simply be appended to the parent.

Resolves #930