Skip to content

Commit

Permalink
docs: fix Toast sample for IE (#1799)
Browse files Browse the repository at this point in the history
FIXES: #1794
  • Loading branch information
ilhan007 committed Jun 15, 2020
1 parent 347f5a1 commit 9565f76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/main/test/samples/Toast.sample.html
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ <h3>Toast Placements</h3>
<script>

// Attaching click listeners to the buttons which show the toasts
document.querySelectorAll("ui5-button").forEach(function(button){
Array.from(document.querySelectorAll("ui5-button")).forEach(button => {
button.addEventListener('click', function () {
document.querySelector("#" + button.id.replace("BtnShow", "")).show();
});
Expand All @@ -167,7 +167,7 @@ <h3>Toast Placements</h3>
<script>

// Attaching click listeners to the buttons which show the toasts
document.querySelectorAll("ui5-button").forEach(function(button){
[].slice.call(document.querySelectorAll("ui5-button")).forEach(function(button){
button.addEventListener('click', function () {
document.querySelector("#" + button.id.replace("BtnShow", "")).show();
});
Expand Down

0 comments on commit 9565f76

Please sign in to comment.