@homebound/beam 2.366.0 → 2.366.1
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.
|
@@ -89,10 +89,7 @@ function RichTextField(props) {
|
|
|
89
89
|
// The <trix-editor /> web component's `trix-initialize` event may fire before a `useEffect` hook in the component is executed, making it difficult ot attach the event listener locally.
|
|
90
90
|
window.addEventListener("trix-initialize", onEditorInit);
|
|
91
91
|
return id;
|
|
92
|
-
},
|
|
93
|
-
// TODO: validate this eslint-disable. It was automatically ignored as part of https://app.shortcut.com/homebound-team/story/40033/enable-react-hooks-exhaustive-deps-for-react-projects
|
|
94
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
95
|
-
[]);
|
|
92
|
+
}, [readOnly]);
|
|
96
93
|
(0, react_2.useEffect)(() => {
|
|
97
94
|
// If our value prop changes (without the change coming from us), reload it
|
|
98
95
|
if (!readOnly && editor && value !== currentHtml.current) {
|