I'm currently on vacation, from a quick test when I changed inputValue to a function in the RichEditor instead of the RichInputField, it caused request comments to not clear the input after submission. This PR satisfies all editors except the "community members invite" editor, for which I can submit a similar fix if we agree.
Note : By providing the input value as a function instead of a string, it will fix the render issue. However, this will result in the console error: "Invalid prop value of type function supplied to Editor, expected string."
Feel free to implement a better solution if found.
Checklist
Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:
:heart: Thank you for your contribution!
Description
Closes https://github.com/inveniosoftware/invenio-app-rdm/issues/2771
I'm currently on vacation, from a quick test when I changed
inputValue
to a function in theRichEditor
instead of theRichInputField
, it caused request comments to not clear the input after submission. This PR satisfies all editors except the "community members invite" editor, for which I can submit a similar fix if we agree.Feel free to implement a better solution if found.
Checklist
Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:
Frontend
Reminder
By using GitHub, you have already agreed to the GitHub’s Terms of Service including that: