@ivanholiak/easy-email-extensions 4.16.33 → 4.16.34
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/lib/index2.js +11 -1
- package/lib/index2.js.map +1 -1
- package/package.json +1 -1
package/lib/index2.js
CHANGED
|
@@ -55357,8 +55357,18 @@ function FieldWrapper(props) {
|
|
|
55357
55357
|
[]
|
|
55358
55358
|
);
|
|
55359
55359
|
useEffect(() => {
|
|
55360
|
+
const root2 = getShadowRoot();
|
|
55361
|
+
if (!root2)
|
|
55362
|
+
return;
|
|
55363
|
+
const onFocusOut = (e2) => {
|
|
55364
|
+
if (e2.target instanceof Element && e2.target.getAttribute("contenteditable") === "true") {
|
|
55365
|
+
debounceCallbackChange.flush();
|
|
55366
|
+
}
|
|
55367
|
+
};
|
|
55368
|
+
root2.addEventListener("focusout", onFocusOut);
|
|
55360
55369
|
return () => {
|
|
55361
|
-
|
|
55370
|
+
root2.removeEventListener("focusout", onFocusOut);
|
|
55371
|
+
debounceCallbackChange.cancel();
|
|
55362
55372
|
};
|
|
55363
55373
|
}, [debounceCallbackChange]);
|
|
55364
55374
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, contentEditableType === ContentEditableType.RichText && /* @__PURE__ */ React__default.createElement(RichTextToolBar, {
|