Skip to content

Commit

Permalink
comments: fix comment editor loses content on focus change
Browse files Browse the repository at this point in the history
* closes #398
  • Loading branch information
Samk13 authored and max-moser committed Aug 6, 2024
1 parent fd8c8fe commit a02062c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// This file is part of InvenioRequests
// Copyright (C) 2022 CERN.
// Copyright (C) 2024 KTH Royal Institute of Technology
//
// Invenio RDM Records 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 @@ -69,7 +70,10 @@ export class RequestAction extends Component {
<Modal.Description>
{i18next.t("Add comment (optional)")}
<Divider hidden />
<RichEditor onChange={this.onCommentChange} />
<RichEditor
inputValue={() => this.state.actionComment}
onChange={this.onCommentChange}
/>
</Modal.Description>
</Modal.Content>
</RequestActionModal>
Expand Down

0 comments on commit a02062c

Please sign in to comment.