question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Error: Uncaught (in promise): Event: {"isTrusted":true}" while rendering container in FF

See original GitHub issue

While trying to render div container with a lot of angular material chechboxes using htmlToImage.toPng i received an error: Error: Uncaught (in promise): Event: {"isTrusted":true} It seems that this error appeared after upgrading Firefox to version 97 or above (it works fine in current Chrome and Edge, and also worked fine in FF<=96.0.3). If i reduce number of components inside container: for example: from 400 to 100-200 it renders without error.

Steps To Reproduce

Here is code that reproduces bug: https://stackblitz.com/edit/angular-ivy-bq1svc Try running it from Firefox (version 97 or above) and click “Export”.

Additional Context

Same behavior is when instead of mat-checkbox i use mat-table for example. On the other hand when I replace mat-checkbox with mat-radio-button the error is gone.

Your Environment

  • html-to-image: [e.g. 1.9.0]
  • OS: [Windows 10 Pro]
  • Browser: [Firefox 97.0.1]

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:8
  • Comments:23 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
roobycommented, Sep 23, 2022

bump. Why isn’t the bot removing the stale tag?

Seems like there is a history on this repo of issues in this queue getting ignored and then closed by the stale bot for no good reason. It’s fine if it takes a long time to get around to investigating issues, but automatically closing them because no one has got to them yet is extremely frustrating.

0reactions
lwstudycommented, Sep 7, 2022

这个问题怎么产生的呢?我在chrome104也会遇到,但是在不同画图元素时,有的能会error有的不会, 1、我在用antv/x6中的vue-shape时使用到htmlToImage.toPng()没什么问题, 2、但是在复杂的节点分组连接桩时,会产生该error,我猜测可能是groups中定义的tagName元素(rect、text、image)导致。【也可能是别的,还是想知道到底发生了什么导致】

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Error: Uncaught (in promise): Event: {"isTrusted":true}" while ...
Generates an image from a DOM node using HTML5 canvas and SVG. - "Error: Uncaught (in promise): Event: {"isTrusted":true}" while rendering container in...
Read more >
Uncaught (in promise): Event: {\"isTrusted\":true}
For anyone interested: the error was happening because clients were blocking the Google Maps Services, but I was trying to load it anyway ......
Read more >
"Error: Uncaught (in promise): Event: {"isTrusted":true}" while ...
While trying to render div container with a lot of angular material chechboxes using htmlToImage.toPng i received an error: Error: Uncaught (in promise): ......
Read more >
HTML Standard
This problem exists because HTML forms can be submitted to other origins. ... The presence of a boolean attribute on an element represents...
Read more >
angular/angular - Gitter
Uncaught Error : Module name "path" has not been loaded yet for ... the $event object just contains { returnValue: false, isTrusted: true...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found