The comment on issue form does not allow to copy&paste snippets of code from the code while editing the comment. As soon as the focus is changed to the code to select the snippet to be copied, the comment box is automatically closed. Worse, when re-opened the previous contents is lost.
This behavior is part of our popup box that closes a soon as there is a click outside of it.
I see two possible solutions :
- we avoid doing this for the edit comment form and keep it open when the user click outside
- we still close it when clicking outside, but we keep the content so the user still have it when re-opening the comment form