ember-modal-dialog icon indicating copy to clipboard operation
ember-modal-dialog copied to clipboard

Cannot call `nextSibling` of null

Open hbrysiewicz opened this issue 6 years ago • 1 comments
trafficstars

Describe the bug:

While upgrading from Ember 3.7 to 3.8 I encountered an issue where any modal-dialog component I used with tetherTarget attribute would fire an issue deep in the internals of Ember/Glimmer runtime that said Cannot call nextSibling of null.

Work around:

It appears that the modal-dialog component has tagName: '' set by default. By setting tagName="div" on instantiation of the modal-dialog component I was able to avoid this error.

Cause:

I'm not 100% clear on the cause but it seems like the modal-dialog is being used as a node by the runtime but having no DOM element confuses it. This may be a runtime error, and not a modal-dialog bug, but starting issue here as this addon probably needs to be upgraded and will likely find the same issue.

hbrysiewicz avatar Nov 06 '19 19:11 hbrysiewicz

@hbrysiewicz thanks for reporting this. I've reproduced it and have confirmed your workaround. I'm equally at a loss about what is going on.

lukemelia avatar Feb 05 '20 06:02 lukemelia