Skip to content

Commit

Permalink
Merge pull request marcelodolza#139 from ayatkyo/fix-close-button
Browse files Browse the repository at this point in the history
Add type to close button
  • Loading branch information
marcelodolza authored Jun 24, 2018
2 parents 05b29ce + 7f4b2ca commit e6a0c78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/iziToast.js
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,7 @@

$DOM.buttonClose = document.createElement('button');

$DOM.buttonClose.type = 'button';
$DOM.buttonClose.classList.add(PLUGIN_NAME + '-close');
$DOM.buttonClose.addEventListener('click', function (e) {
var button = e.target;
Expand Down

0 comments on commit e6a0c78

Please sign in to comment.