@progressive-development/pd-page 0.1.19 → 0.1.21
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 -1
package/package.json
CHANGED
package/src/PdMenu.js
CHANGED
|
@@ -286,6 +286,7 @@ export class PdMenu extends LitElement {
|
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
_menuItemClicked(e) {
|
|
289
|
+
this._toggleBurgerMenu();
|
|
289
290
|
const secParam = e.target.dataset.sec;
|
|
290
291
|
const routeParam = e.target.dataset.route;
|
|
291
292
|
if (secParam !== 'undefined' && secParam !== '') {
|
|
@@ -319,7 +320,7 @@ export class PdMenu extends LitElement {
|
|
|
319
320
|
const rect = el.getBoundingClientRect();
|
|
320
321
|
// https://www.mediaevent.de/javascript/scroll.html
|
|
321
322
|
window.scrollBy({
|
|
322
|
-
top: rect.top - (this.teaserClosed ? this.scrollFix : (350 + this.scrollFix),
|
|
323
|
+
top: rect.top - (this.teaserClosed ? this.scrollFix : (350 + this.scrollFix)),
|
|
323
324
|
left: 0,
|
|
324
325
|
behavior: 'smooth',
|
|
325
326
|
});
|