core: Right clicking the text of an alert crashes the browser #6107
Comments
This is a React issue, documented here. There are a few workarounds on that comment thread. But tl;dr, it's been fixed in later versions of React so path one is to update, path two is to use one of the workarounds on that thread, or path three is wrapping Closing because React already has a fix and it's outside the scope of Clarity. |
@mathisscott I don't believe this is related: the Stackblitz shared above is on the latest React (17.0.2). Apologies for incorrectly reporting this on the issue description. Would you mind reopening this issue? 🙏 |
Additionally, this is a React issue. You'd get the most traction by opening an issue with them. If they do or do not fix it, there are three paths to workaround listed above. |
Alright, my Stackblitz got hosed with:
So I had to create a CodeSandbox instead (forking didn't fix it): https://codesandbox.io/s/affectionate-raman-qpdof It's using React 17.0.2, and on https://qpdof.csb.app/ you can see that the bug still exists. How did you connect this to the React issue you linked to? The dev console does not have any warning so I'm not sure how to debug this, or even know for sure that it's a React issue. |
After it crashes in stackblitz, you can see the SharedArrayBuffer error in the console. As far as us fixing this, we already wrap that content in an element. Wrapping it in another element (a |
That seems like a can of worms far bigger and out-of-topic for that specific bug, so I'll pass on the opportunity 😅 If anyone implements the alert as documented on the Clarity website and uses Could |
Hi there 👋, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed issues after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary. |
Describe the bug
Right clicking the text of an alert crashes the browser.
How to reproduce
Steps to reproduce the behavior:
Expected / Actual behavior
Screen.Recording.2021-06-29.at.17.47.04.mov
Versions
Clarity project:
Clarity version:
Framework:
_I have not tested if that's a bug with the web components as well or only the React components.°
Framework version:
React 17.0.2
Device:
The text was updated successfully, but these errors were encountered: