diff options
| author | Skitty1238 <157652284+Skitty1238@users.noreply.github.com> | 2025-06-04 10:16:43 -0400 |
|---|---|---|
| committer | Skitty1238 <157652284+Skitty1238@users.noreply.github.com> | 2025-06-04 10:16:43 -0400 |
| commit | a3e42fc90bb166b2be177184a8df74e325b49a23 (patch) | |
| tree | d10d8882d00130685d23aabadb9964075158ead1 /src/client/views/nodes/formattedText/EquationEditor.tsx | |
| parent | c96a14c881ea28d820a53a38fa9360814dcb6385 (diff) | |
| parent | d3e5e09a51c7c95bffabd41b14e660aafcd80015 (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.tsx | 4 |
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' }} />; } |
