@progressive-development/pd-page 0.0.13 → 0.0.14
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.
- package/package.json +1 -1
- package/src/PdMenu.js +2 -2
package/package.json
CHANGED
package/src/PdMenu.js
CHANGED
|
@@ -200,13 +200,13 @@ export class PdMenu extends LitElement {
|
|
|
200
200
|
_menuItemClicked(e) {
|
|
201
201
|
const secParam = e.target.dataset.sec;
|
|
202
202
|
const routeParam = e.target.dataset.route;
|
|
203
|
-
if (secParam !== 'undefined' && secParam !== ''
|
|
203
|
+
if (secParam !== 'undefined' && secParam !== '') {
|
|
204
204
|
this._scrollToContent(secParam);
|
|
205
205
|
} else if (routeParam !== 'undefined' && routeParam !== '') {
|
|
206
206
|
this.dispatchEvent(
|
|
207
207
|
new CustomEvent('route-event', {
|
|
208
208
|
detail: {
|
|
209
|
-
route: routeParam,
|
|
209
|
+
route: routeParam === 'back' ? '' : routeParam,
|
|
210
210
|
},
|
|
211
211
|
})
|
|
212
212
|
);
|