carloscuesta / gitmoji

An emoji guide for your commit messages. 😜
https://gitmoji.dev
MIT License
15.54k stars 802 forks source link

Copied to the clipboard popup does not show on chrome with Grammarly for Chrome extension #928

Closed codingedgar closed 2 years ago

codingedgar commented 2 years ago

Describe the bug Following https://github.com/carloscuesta/gitmoji/issues/912#issuecomment-974782522 , the popup in the gif does not show in macOS Chrome with the Grammarly for Chrome extension.

To Reproduce Steps to reproduce the behavior:

  1. Go to Chrome
  2. Install Grammarly for Chrome extension
  3. Open https://gitmoji.dev/
  4. Click on any emoji
  5. See error: No pop up when elements are copied to the clipboard

Expected behavior image Should show

Desktop (please complete the following information):

Additional context

Uncaught DOMException: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
    at b._init (https://gitmoji.dev/:2:137)
    at new b (https://gitmoji.dev/:1:52728)
    at https://gitmoji.dev/_next/static/chunks/pages/index-625dd677279edfc4.js:1:25586
    at r.emit (https://gitmoji.dev/_next/static/chunks/pages/index-625dd677279edfc4.js:1:9973)
    at e.value (https://gitmoji.dev/_next/static/chunks/pages/index-625dd677279edfc4.js:1:2602)
    at e.value (https://gitmoji.dev/_next/static/chunks/pages/index-625dd677279edfc4.js:1:2533)
    at e.value (https://gitmoji.dev/_next/static/chunks/pages/index-625dd677279edfc4.js:1:2058)
    at e.value (https://gitmoji.dev/_next/static/chunks/pages/index-625dd677279edfc4.js:1:1165)
    at new e (https://gitmoji.dev/_next/static/chunks/pages/index-625dd677279edfc4.js:1:813)
    at r.value (https://gitmoji.dev/_next/static/chunks/pages/index-625dd677279edfc4.js:1:6479)
b._init @ (index):2
b @ (index):1
(anonymous) @ index-625dd677279edfc4.js:1
emit @ index-625dd677279edfc4.js:1
value @ index-625dd677279edfc4.js:1
value @ index-625dd677279edfc4.js:1
value @ index-625dd677279edfc4.js:1
value @ index-625dd677279edfc4.js:1
e @ index-625dd677279edfc4.js:1
value @ index-625dd677279edfc4.js:1
(anonymous) @ index-625dd677279edfc4.js:1
(anonymous) @ index-625dd677279edfc4.js:1
vhoyer commented 2 years ago

the popup doesn't show up, but does the clipboard work?

codingedgar commented 2 years ago

the popup doesn't show up, but does the clipboard work?

@vhoyer yes, it works fine!

I worked it around by disabling grammarly for that page in chrome's extension manager (in-extension-config was not enough), but unsure if it is working 100% of the time.

carloscuesta commented 2 years ago

Hey, I don't necessarily consider this a bug as the extension is somewhat affecting the JS of the page, this is not something we can control 100% on our own so I'll close the issue 😊