In makeInsertionTagCallback the <content> [and possibly can-slots] are set up using addContext, which sets preventDataBindings on the DOM data state of content and slot elements. Since these elements never get added to the DOM, there's no removal mutation triggering a cleanup, and they stay resident in the can-dom-data-state removeDisposalMap.
It should suffice for this case to clean preventDataBindings from the elements after adding context.
In
makeInsertionTagCallback
the<content>
[and possibly can-slots] are set up usingaddContext
, which setspreventDataBindings
on the DOM data state of content and slot elements. Since these elements never get added to the DOM, there's no removal mutation triggering a cleanup, and they stay resident in the can-dom-data-stateremoveDisposalMap
.It should suffice for this case to clean
preventDataBindings
from the elements after adding context.