Skip to content

Commit

Permalink
BugFix: Updating trix-initialize when readOnly changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnCh committed Sep 18, 2024
1 parent 6c4d22b commit 34e1076
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/inputs/RichTextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,7 @@ export function RichTextField(props: RichTextFieldProps) {
window.addEventListener("trix-initialize", onEditorInit);
return id;
},
// 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
// eslint-disable-next-line react-hooks/exhaustive-deps
[],
[readOnly],
);

useEffect(() => {
Expand Down

0 comments on commit 34e1076

Please sign in to comment.