aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--web_src/js/index.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js
index 395a01f059..f4f08b828c 100644
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -1490,7 +1490,9 @@ function setCommentSimpleMDE($editArea) {
}
},
Backspace: (cm) => {
- cm.getInputField().trigger('input');
+ if (cm.getInputField().trigger) {
+ cm.getInputField().trigger('input');
+ }
cm.execCommand('delCharBefore');
}
});