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
This seems to be adding a spurious div to my page with no parent element. This causes an error in the console. It doesn't break anything, but it would be nice to get rid of the error.
I have done some digging in the code and I think it can be solved by adding an extra check when setting up the MutationObserver as below:
if (node.nodeType !== 1) return
// ADD THIS EXTRA CHECK TO ENSURE THE NODE HAS A PARENT
// Check the node has a parent
if (!node.parentElement) return;
// Discard any changes happening within an existing component.
// They will take care of themselves.
if (node.parentElement.closest('[x-data]')) return
But I've never used this class before and only just started dabbling with the framework so wanted to run it by you first in case there is anything that this could break.
Lmk - happy to submit a PR if you think the solution works.
Thanks,
Joe
The text was updated successfully, but these errors were encountered:
I use a Chrome extension called WhatFont
This seems to be adding a spurious div to my page with no parent element. This causes an error in the console. It doesn't break anything, but it would be nice to get rid of the error.
I have done some digging in the code and I think it can be solved by adding an extra check when setting up the
MutationObserver
as below:But I've never used this class before and only just started dabbling with the framework so wanted to run it by you first in case there is anything that this could break.
Lmk - happy to submit a PR if you think the solution works.
Thanks,
Joe
The text was updated successfully, but these errors were encountered: