Skip to content

Commit

Permalink
Editor: Update RichEditor to use inputValue
Browse files Browse the repository at this point in the history
  • Loading branch information
Samk13 authored and max-moser committed Aug 8, 2024
1 parent f8fa002 commit 9420597
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// This file is part of InvenioRDM
// Copyright (C) 2024 CERN.
// Copyright (C) 2024 KTH Royal Institute of Technology.
//
// Invenio App RDM is free software; you can redistribute it and/or modify it
// under the terms of the MIT License; see LICENSE file for more details.
Expand Down Expand Up @@ -139,6 +140,7 @@ export class AddUserGroupAccessModal extends Component {
<b>{i18next.t("Notification message")}</b>
</p>
<RichEditor
inputValue={() => message} // () => Avoid re-rendering
onBlur={(event, editor) => {
this.updateMessage(editor.getContent());
}}
Expand Down

0 comments on commit 9420597

Please sign in to comment.