@progressive-development/pd-page 0.1.21 → 0.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/PdMenu.js +6 -1
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Progressive development page helper, teaser, menu, footer.",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "author": "PD Progressive Development",
6
- "version": "0.1.21",
6
+ "version": "0.1.22",
7
7
  "main": "index.js",
8
8
  "module": "index.js",
9
9
  "scripts": {
package/src/PdMenu.js CHANGED
@@ -286,7 +286,7 @@ export class PdMenu extends LitElement {
286
286
  }
287
287
 
288
288
  _menuItemClicked(e) {
289
- this._toggleBurgerMenu();
289
+
290
290
  const secParam = e.target.dataset.sec;
291
291
  const routeParam = e.target.dataset.route;
292
292
  if (secParam !== 'undefined' && secParam !== '') {
@@ -301,6 +301,11 @@ export class PdMenu extends LitElement {
301
301
  })
302
302
  );
303
303
  }
304
+
305
+ // close menu if open
306
+ if (this._activeBurgerMenu) {
307
+ this._activeBurgerMenu = !this._activeBurgerMenu;
308
+ }
304
309
  }
305
310
 
306
311
  static _scrollToTop() {