Skip to content

Commit

Permalink
justere lastEditor ved readOnly (#5104)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomashwi authored Oct 9, 2023
1 parent eb92315 commit 928dd44
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ const FritekstEditor = ({
};

useEffect(() => {
if (redigerbartInnholdKlart && !editor.harEditor()) {
if (redigerbartInnholdKlart && !editor.harEditor() && !readOnly) {
lastEditor();
}
}, [redigerbartInnholdKlart]);
}, [redigerbartInnholdKlart, readOnly]);

const handleLagreOgLukk = () => {
handleLagre();
Expand Down

0 comments on commit 928dd44

Please sign in to comment.