Remove es6 code from non-es6 area (#904)

This commit is contained in:
Ben Halpern 2018-10-13 20:02:49 -04:00 committed by GitHub
parent 221c363af0
commit 57fff54cd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -296,7 +296,7 @@ function handleKeyDown(event) {
event.target.value.trim() !== '') {
// get a reference to the submit button for the text area (first level comment vs. reply comment)
var parentFormId = event.target.parentElement.parentElement.id || event.target.parentElement.id;
var submitButton = document.querySelector(`#${parentFormId} input[type="submit"].comment-action-button`);
var submitButton = document.querySelector('#' + parentFormId + ' input[type="submit"].comment-action-button');
submitButton.click();
}
}