Skip to content

Commit

Permalink
Editor: Update RichInputField to use inputValue instead of value
Browse files Browse the repository at this point in the history
* Added missing initialValue prop
* Update prop value to inputValue
* This will fix the issue in deposit page, communities Invite members, communities settings pages
closes inveniosoftware/invenio-app-rdm#2771
  • Loading branch information
Samk13 authored and max-moser committed Aug 2, 2024
1 parent a3cdae1 commit a9e4c5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/forms/RichInputField.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// This file is part of React-Invenio-Deposit
// Copyright (C) 2022 CERN.
// Copyright (C) 2020 Northwestern University.
// Copyright (C) 2024 KTH Royal Institute of Technology.
//
// React-Invenio-Deposit 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 @@ -39,7 +40,8 @@ export class RichInputField extends Component {
editor
) : (
<RichEditor
value={value}
initialValue={initialValue}
inputValue={() => value} // () => To avoid re-rendering
optimized
editorConfig={editorConfig}
onBlur={(event, editor) => {
Expand Down

0 comments on commit a9e4c5a

Please sign in to comment.