In the quick reply panel, after a recent PR, strange symptoms appeared: the editor text does not always match the selected template, and under fast actions part of the entered text may disappear. A regression review is needed to find the causes.
templates and the current selection via selectedTemplateId.textarea field must show the text of the selected template immediately after the selection changes.Reset button must restore the content to the currently selected template.StrictMode in development mode.StrictMode enabled.welcome template is selected first.followup template.textarea content does not synchronize with the new selection.textarea.Reset.Reset restores the wrong text, not the text for the current template.selectedTemplateId, the textarea should display the text of the corresponding template.Reset should use the actual template selected at the moment of clicking.19.0.05.8.2React.StrictModeselectedTemplateId always corresponds to one of the elements in templatesUse line comments to explain the problem, its impact, the fix and how to test it.