Skip to content

Commit af8aee7

Browse files
committed
Add debugging output to resolve issue with import callback
1 parent 46189ac commit af8aee7

File tree

7 files changed

+14
-8
lines changed

7 files changed

+14
-8
lines changed

dist/components/form/components/FormRichText.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change

dist/components/form/components/FormRichText.js

+4-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/components/form/components/FormRichText.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.es.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -25550,8 +25550,10 @@ var FormRichText = function (_a) {
2555025550
};
2555125551
React.useEffect(function () {
2555225552
if (containerRef.current) {
25553+
console.log(importCallback);
2555325554
if (importCallback) {
25554-
//Callback to import new modules into quill, needs to be done within the same instance as the quill object.
25555+
console.log("import callback called");
25556+
// Callback to import new modules into quill, needs to be done within the same instance as the quill object.
2555525557
importCallback();
2555625558
}
2555725559
var container_1 = containerRef.current;
@@ -25570,7 +25572,7 @@ var FormRichText = function (_a) {
2557025572
// NOTE: Run effect once on component mount, please recheck dependencies if effect is updated.
2557125573
// eslint-disable-next-line react-hooks/exhaustive-deps
2557225574
}, []);
25573-
return React.createElement("div", { ref: containerRef, style: rest.style, id: rest.id, className: rest.className });
25575+
return (React.createElement("div", { ref: containerRef, style: rest.style, id: rest.id, className: rest.className }));
2557425576
};
2557525577

2557625578
var FormDateTime = function (_a) {

dist/index.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/form/components/FormRichText.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ const FormRichText = ({
4545

4646
useEffect(() => {
4747
if (containerRef.current) {
48+
console.log(importCallback);
4849
if (importCallback) {
50+
console.log('import callback called');
4951
// Callback to import new modules into quill, needs to be done within the same instance as the quill object.
5052
importCallback();
5153
}

0 commit comments

Comments
 (0)