Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor: Update RichInputField to use inputValue instead of value #249

Merged
merged 2 commits into from
Aug 2, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading