diff --git a/web_src/js/index.js b/web_src/js/index.js index 84e08c1dd3d..58cbd429330 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -1497,7 +1497,7 @@ function setCommentSimpleMDE($editArea) { simplemde.codemirror.setOption('extraKeys', { Enter: () => { const tributeContainer = document.querySelector('.tribute-container'); - if (tributeContainer && tributeContainer.style.display !== 'none') { + if (!tributeContainer || tributeContainer.style.display === 'none') { return CodeMirror.Pass; } },