Skip to content

Commit

Permalink
prevent default in passive listener fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred Heusschen committed Jun 24, 2020
1 parent 66b54a4 commit b1065f0
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/mmenu-light.js

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

1 change: 0 additions & 1 deletion esm/modules/offcanvas-drawer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ var MmOffCanvasDrawer = /** @class */ (function () {
// Click the backdrop.
var close = function (evnt) {
_this.close();
evnt.preventDefault();
evnt.stopImmediatePropagation();
};
this.backdrop.addEventListener('touchstart', close, { passive: true });
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mmenu-light",
"version": "3.0.4",
"version": "3.0.5",
"main": "dist/mmenu-light.js",
"module": "src/mmenu-light.js",
"author": "Fred Heusschen <[email protected]>",
Expand Down
1 change: 0 additions & 1 deletion src/modules/offcanvas-drawer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export default class MmOffCanvasDrawer {
// Click the backdrop.
const close = (evnt: MouseEvent) => {
this.close();
evnt.preventDefault();
evnt.stopImmediatePropagation();
};
this.backdrop.addEventListener('touchstart', close, { passive: true });
Expand Down

0 comments on commit b1065f0

Please sign in to comment.