From a8f0e0f67a4c115eb6224f78bf2aaeaa77b0d10b Mon Sep 17 00:00:00 2001 From: zeripath Date: Sat, 18 Apr 2020 05:19:19 +0100 Subject: [PATCH] Refresh codemirror on show pull comment tab (#11100) Fix #10975 Signed-off-by: Andrew Thornton Co-authored-by: John Olheiser Co-authored-by: techknowlogick Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> --- web_src/js/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web_src/js/index.js b/web_src/js/index.js index 027e5a89c1c03..cc3fc824e8deb 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -1098,6 +1098,7 @@ function initRepository() { $repoComparePull.find('button.show-form').on('click', function (e) { e.preventDefault(); $repoComparePull.find('.pullrequest-form').show(); + autoSimpleMDE.codemirror.refresh(); $(this).parent().hide(); }); }