aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/formattedText/EquationEditor.tsx
diff options
context:
space:
mode:
authorSkitty1238 <157652284+Skitty1238@users.noreply.github.com>2025-06-04 10:16:43 -0400
committerSkitty1238 <157652284+Skitty1238@users.noreply.github.com>2025-06-04 10:16:43 -0400
commita3e42fc90bb166b2be177184a8df74e325b49a23 (patch)
treed10d8882d00130685d23aabadb9964075158ead1 /src/client/views/nodes/formattedText/EquationEditor.tsx
parentc96a14c881ea28d820a53a38fa9360814dcb6385 (diff)
parentd3e5e09a51c7c95bffabd41b14e660aafcd80015 (diff)
Merge branch 'master' into task_nodes_aarav
Diffstat (limited to 'src/client/views/nodes/formattedText/EquationEditor.tsx')
-rw-r--r--src/client/views/nodes/formattedText/EquationEditor.tsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/views/nodes/formattedText/EquationEditor.tsx b/src/client/views/nodes/formattedText/EquationEditor.tsx
index 48efa6e63..23d273523 100644
--- a/src/client/views/nodes/formattedText/EquationEditor.tsx
+++ b/src/client/views/nodes/formattedText/EquationEditor.tsx
@@ -72,6 +72,10 @@ class EquationEditor extends Component<EquationEditorProps> {
this.mathField.latex(value || '');
}
+ componentDidUpdate(prevProps: Readonly<EquationEditorProps>): void {
+ !prevProps.value && this.mathField.latex(this.props.value || '');
+ }
+
render() {
return <span ref={this.element} style={{ border: '0px', boxShadow: 'None' }} />;
}