Skip to content

Commit

Permalink
fix: disable auto-translate of the NMRium component (#2859)
Browse files Browse the repository at this point in the history
This leads to random crashes because browser translation manipulates the
DOM in a way that React can be confused.
  • Loading branch information
targos committed Jan 26, 2024
1 parent 1162900 commit d5e178e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/component/main/InnerNMRium.tsx
Expand Up @@ -85,7 +85,11 @@ export function InnerNMRium({
);

return (
<div ref={mainDivRef} style={{ height: '100%', position: 'relative' }}>
<div
ref={mainDivRef}
style={{ height: '100%', position: 'relative' }}
translate="no"
>
<GlobalProvider
value={{
rootRef: rootRef.current,
Expand Down

0 comments on commit d5e178e

Please sign in to comment.