You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When is pass an HTML Element to the teleportTo property in the config, it does not work.
I have analysed the code a bit and I guess the problem is the mergeDeep function. There is no check in it if the passed Element is an HTML Element, and therefore it is interpreted as an Object which will then be "ripped apart".
A quick fix would be to add a condition like && source[key].nodeType !== 1 in the mergeDeep function like:
When is pass an HTML Element to the
teleportTo
property in the config, it does not work.I have analysed the code a bit and I guess the problem is the
mergeDeep
function. There is no check in it if the passed Element is an HTML Element, and therefore it is interpreted as an Object which will then be "ripped apart".A quick fix would be to add a condition like
&& source[key].nodeType !== 1
in themergeDeep
function like:The text was updated successfully, but these errors were encountered: