Details
-
Bug
-
Resolution: Answered
-
Low
-
3.4.5, 3.5.0
-
None
-
Severity 3 - Minor
-
0
-
Description
When adding a new comment, the comment box will show the previous comment if the previous comment was created while in preview mode.
Steps to reproduce
- Create a new code review and add a file.
- Click in the file to add a comment.
- Type some random text.
- Click the Preview Comment button to preview the formatted comment.
- Click the Comment button to accept the comment while in preview mode.
- Click on another line in the file to create a new comment.
At this point, the comment box will be in preview mode and will show the previously added comment. Clicking the Preview Comment button will return to an empty box.
Expected behavior
Creating the second comment will show an empty comment box in edit mode, not preview mode.