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
If text contains a link and user tries to select this link, then follow error appears in console Uncaught TypeError: Array.prototype.forEach called on null or undefined
Steps to reproduce
Type some text
Create a link at one word
Select this link using mouse many times.
Expected behavior:
No errors in console
Actual behavior:
An error message outputs to the console
Ah, I was finally able to get a repro on this! (thanks @MikeDevice).
Looks like the issue is within events.detachDOMEvent() and potentially events.attachDOMEvent(). We need to safety check to ensure the targets actually exists and is an array. Seems like with the anchor-preview mouse-out detection, there could be a case where we try to detach an event listener from an element that might not exist anymore.
Description
If text contains a link and user tries to select this link, then follow error appears in console
Uncaught TypeError: Array.prototype.forEach called on null or undefined
Steps to reproduce
Expected behavior:
No errors in console
Actual behavior:
An error message outputs to the console
Link to an example:
JSFiddle
Versions
The text was updated successfully, but these errors were encountered: