-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refresh codemirror on show pull comment tab #11100
Refresh codemirror on show pull comment tab #11100
Conversation
Fix go-gitea#10975 Signed-off-by: Andrew Thornton <art27@cantab.net>
Does this also apply to new issues? |
I don't think that issues were ever affected, certainly http://localhost/gitea/administrator/merge-test/issues/new?body=rabbits+feet just works on master. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
didnt had time to check but nice 🎉 |
Ping lg-tm |
@silverwind it's already initialised with the correct value. The issue appears to be that the field is hidden and then shown. |
Fix go-gitea#10975 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: John Olheiser <john.olheiser@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Fix #10975 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: John Olheiser <john.olheiser@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: John Olheiser <john.olheiser@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Fix go-gitea#10975 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: John Olheiser <john.olheiser@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
When trying to create a new PR the comment field does not show the default data until the field is clicked. This PR calls
autoSimpleMDE.codemirror.refresh();
to cause the default data to be shown.Fix #10975
Signed-off-by: Andrew Thornton art27@cantab.net