Skip to content

Commit

Permalink
fix(anchors): Call stopPropagation on prevented click event (#312)
Browse files Browse the repository at this point in the history
Fixes #222
  • Loading branch information
alexandrethsilva authored and jedrzejchalubek committed Feb 6, 2019
1 parent 0b86a77 commit 5d2d14f
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 15 deletions.
5 changes: 2 additions & 3 deletions dist/glide.esm.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Glide.js v3.2.4
* (c) 2013-2018 Jędrzej Chałubek <jedrzej.chalubek@gmail.com> (http://jedrzejchalubek.com/)
* (c) 2013-2019 Jędrzej Chałubek <jedrzej.chalubek@gmail.com> (http://jedrzejchalubek.com/)
* Released under the MIT License.
*/

Expand Down Expand Up @@ -2978,9 +2978,8 @@ function Anchors (Glide, Components, Events) {
* @return {Void}
*/
click: function click(event) {
event.stopPropagation();

if (prevented) {
event.stopPropagation();
event.preventDefault();
}
},
Expand Down
5 changes: 2 additions & 3 deletions dist/glide.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Glide.js v3.2.4
* (c) 2013-2018 Jędrzej Chałubek <jedrzej.chalubek@gmail.com> (http://jedrzejchalubek.com/)
* (c) 2013-2019 Jędrzej Chałubek <jedrzej.chalubek@gmail.com> (http://jedrzejchalubek.com/)
* Released under the MIT License.
*/

Expand Down Expand Up @@ -2984,9 +2984,8 @@
* @return {Void}
*/
click: function click(event) {
event.stopPropagation();

if (prevented) {
event.stopPropagation();
event.preventDefault();
}
},
Expand Down
Loading

0 comments on commit 5d2d14f

Please sign in to comment.