From 731bdef4be033020063528355b1ae0f156b2d4fa 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 63a5134bb..2203ab724 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -1135,6 +1135,7 @@ async function initRepository() { $repoComparePull.find('button.show-form').on('click', function (e) { e.preventDefault(); $repoComparePull.find('.pullrequest-form').show(); + autoSimpleMDE.codemirror.refresh(); $(this).parent().hide(); }); }