Fix inconsistent behaviour in work items comments
What does this MR do and why?
The main issue is related to the use of the shortcut ctrl/cmd + enter while saving the comment. As the comment is stored in the local storage, it was getting cleared on form submission but restored as the key input event was calling setCommentText method. Clear the local storage when update mutation is successfully completed.
Screenshots or screen recordings
Before | After |
---|---|
Screen_Recording_2023-03-21_at_5.42.13_PM | Screen_Recording_2023-03-20_at_9.44.17_PM |
How to set up and validate locally
- Create a work item (Objective, Keyresult)
- Submit a comment or reply on comment using keyboard shortcut (ctrl/cmd + enter)
- Try replying again using the text box
- Check if the last commented value is still there in the text area
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #388314 (closed)
Edited by Rajan Mistry