feedback-vos 1.0.46 → 1.0.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -419,7 +419,13 @@ function ScreenshotButton({
419
419
  // Maintain proper container rendering
420
420
  logging: false,
421
421
  ignoreElements: (element) => {
422
- return element.hasAttribute("data-feedback-widget") || element.closest("[data-feedback-widget]") !== null;
422
+ const isWidget = element.hasAttribute("data-feedback-widget") || element.closest("[data-feedback-widget]") !== null;
423
+ if (isWidget) return true;
424
+ if (element.tagName === "IMG" || element.tagName === "CANVAS" || element.tagName === "VIDEO") {
425
+ const rect = element.getBoundingClientRect();
426
+ if (rect.width === 0 || rect.height === 0) return true;
427
+ }
428
+ return false;
423
429
  }
424
430
  });
425
431
  if (canvas.width === 0 || canvas.height === 0) {