Error on destroying DropDownDivConverter widget

5
Since MX 7.18.1 the the DropDownDivConverter widget gives the following error on close page: Error: Unable to destroy:: Error while uninitialize NotFoundError: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node. and warning: Home.dropdownDivConverter1: Unable to destroy:: Error while uninitialize NotFoundError: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node. The error only occurs when there's an object in the container. If the container is empty the error does not occur.
asked
3 answers
6

Actually I did find the sollution.
Instead of placing the widget inside the container you want to convert to a drop down you need to place it underneath the container. See below:

answered
2

The DropDownDivConverter is modifying the DOM. This causes some widget lifecycle functions to misbehave because the widget (in this case one of the buttons) tries to remove itself from the original parent node which no longer is the actual parent node.

Since your container is now the parent node, your solution is working fine in this case.

However I'd recommend to be carefull with this widget. I also encountered other inconsisten behaviour on context updates (i.e. a button in the dropdown would not pass the current context object, but an older one).

answered
0

I too Faced this issue, but this doesn’t make sense for me. I tried Dropdown Container widget, it works well for me.

answered