Closed rhymes closed 3 years ago
Thanks for the issue, we will take it into consideration! Our team of engineers is busy working on many types of features, please give us time to get back to you.
Feature requests that require more discussion may be closed. Read more about our feature request process on forem.dev.
To our amazing contributors: issues labeled type: bug
are always up for grabs, but for feature requests, please wait until we add a ready for dev
before starting to work on it.
To claim an issue to work on, please leave a comment. If you've claimed the issue and need help, please ping @forem/oss. The OSS Community Manager or the engineers on OSS rotation will follow up.
For full info on how to contribute, please check out our contributors guide.
This is related to the new mention autocomplete feature.
The mention autocomplete has two inputs that it toggles between, so most likely both are not being cleared.
An end to end test should be added for this to avoid future regressions of this functionality.
I did a bit of digging and the article body is getting reset, but the state in the MentionAutocomplete component is not updating it's text, because the reset data is not being updated via the setText
function from a useState
hook. The input is not a controlled input component. Only the initial value of the article body is set from the parent. From there, the MentionAutoComplete is an uncontrolled form input component.
Closing this as I believe it was fixed in #13365
Describe the bug
In the editor: after having added a title, tags and the content if you click on "Revert new changes" and confirmed the popup, the editor will remove the title, the tags but not the content.
To Reproduce
Expected behavior
The content should be removed as well
Desktop (please complete the following information):