@progressive-development/pd-page 0.1.26 → 0.1.27

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 +5 -2
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.26",
6
+ "version": "0.1.27",
7
7
  "main": "index.js",
8
8
  "module": "index.js",
9
9
  "scripts": {
package/src/PdMenu.js CHANGED
@@ -295,11 +295,12 @@ export class PdMenu extends LitElement {
295
295
  this._activeBurgerMenu = !this._activeBurgerMenu;
296
296
  }
297
297
 
298
- _menuItemClicked(e) {
298
+ _menuItemClicked(e) {
299
299
 
300
300
  // get menu item
301
301
  const keyParam = e.target.dataset.key;
302
- const menuItem = this.menuItems.filter(mi => mi.key === keyParam)[0];
302
+ const menuItem = this.menuItems.filter(mi => mi.key === keyParam)[0]
303
+ || this.topMenuItems.filter(mi => mi.key === keyParam)[0];
303
304
 
304
305
  if (menuItem.sec && menuItem.sec !== '') {
305
306
  // TODO: Check if element exists
@@ -310,6 +311,8 @@ export class PdMenu extends LitElement {
310
311
  detail: {
311
312
  route: menuItem.route === 'back' ? '' : menuItem.route,
312
313
  },
314
+ composed: true,
315
+ bubbles: true,
313
316
  })
314
317
  );
315
318
  } else if (menuItem.action) {