Skip to content

Commit

Permalink
Invitation: 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 5, 2024
1 parent a347562 commit 27314c3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/*
* This file is part of Invenio.
* Copyright (C) 2022-2024 CERN.
* Copyright (C) 2024 KTH Royal Institute of Technology.
*
* Invenio 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 @@ -119,6 +120,7 @@ export class InvitationsMembersModal extends Component {
<>
<label>{i18next.t("Invitation message")}</label>
<RichEditor
inputValue={() => message} // () => Needed to avoid re-rendering
onBlur={(event, editor) => {
this.updateMessage(editor.getContent());
}}
Expand Down

0 comments on commit 27314c3

Please sign in to comment.