Skip to content

Commit

Permalink
Merge pull request #31 from sbruggmann/issue-30
Browse files Browse the repository at this point in the history
BUGFIX: Fix forEach JS Error in IE
  • Loading branch information
sbruggmann authored Apr 16, 2018
2 parents 03f5c82 + f962d0a commit 8887d2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Resources/Private/Components/Reply/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const ReplyButton = () => {
const buttonClass = '.comment-reply-button';

return (
document.querySelectorAll(buttonClass).forEach(buttonNode => {
[].slice.call(document.querySelectorAll(buttonClass)).forEach(buttonNode => {
buttonNode.addEventListener('click', (event) => {
let button = event.target;
document.getElementById(formFieldId).value = button.getAttribute('data-identifier');
Expand Down
2 changes: 1 addition & 1 deletion Resources/Public/Main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8887d2c

Please sign in to comment.