Thanks a lot.
I thought that by specifying a target it would do exactly that, attaching to a target.
And actually, if I specify both a target and .appendTo(#targetId) I get another exception:
Uncaught DOMException: Failed to execute 'appendChild' on 'Node': The new child element contains the parent.
at t.initRender (https://cdn.syncfusion.com/ej2/dist/ej2.min.js:10:567642)
at t.render (https://cdn.syncfusion.com/ej2/dist/ej2.min.js:10:562276)
at t.appendTo (https://cdn.syncfusion.com/ej2/dist/ej2.min.js:10:411396)
at addMeDialog (https://localhost:44329/schedule:600:15)
at t.onPopupOpen (https://localhost:44329/schedule:384:24)
at e.notify (https://cdn.syncfusion.com/ej2/dist/ej2.min.js:10:346784)
at t.e.trigger (https://cdn.syncfusion.com/ej2/dist/ej2.min.js:10:349009)
at e.beforeQuickPopupOpen (https://cdn.syncfusion.com/ej2/dist/ej2.min.js:10:7113743)
at e.eventClick (https://cdn.syncfusion.com/ej2/dist/ej2.min.js:10:7104808)
at e.notify (https://cdn.syncfusion.com/ej2/dist/ej2.min.js:10:346784)
t.initRender @ treemap.ts:2
t.render @ treemap.ts:2
t.appendTo @ treemap.ts:2
addMeDialog @ schedule:600
onPopupOpen @ schedule:384
e.notify @ treemap.ts:2
e.trigger @ treemap.ts:2
e.beforeQuickPopupOpen @ treemap.ts:2
e.eventClick @ treemap.ts:2
e.notify @ treemap.ts:2
t.notify @ treemap.ts:2
e.eventClick @ treemap.ts:2
So this is leaving me slightly confused as to what the correct way to go about this is.