0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 18:54:37 +01:00

In SimpleMDE check if trigger exists before call (#9545)

This commit is contained in:
zeripath 2019-12-30 17:11:50 +00:00 committed by GitHub
parent d59536c222
commit c2d854cfd2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1490,7 +1490,9 @@ function setCommentSimpleMDE($editArea) {
}
},
Backspace: (cm) => {
cm.getInputField().trigger('input');
if (cm.getInputField().trigger) {
cm.getInputField().trigger('input');
}
cm.execCommand('delCharBefore');
}
});