@amplifyup/sdk 0.1.72 → 0.1.73

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/react.mjs CHANGED
@@ -4886,6 +4886,9 @@ var lastRichTextRequestAt = 0;
4886
4886
  function requestCanvasRichTextEdit(opts) {
4887
4887
  if (typeof window === "undefined" || window.parent === window) return;
4888
4888
  if (!opts.name) return;
4889
+ if (opts.el.classList.contains("au-rte-active") || opts.el.querySelector(".ProseMirror")) {
4890
+ return;
4891
+ }
4889
4892
  const now = Date.now();
4890
4893
  if (now - lastRichTextRequestAt < 400) return;
4891
4894
  lastRichTextRequestAt = now;