@profitlich/template-toolkit 5.2.2 → 5.2.3

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.
@@ -157,6 +157,11 @@ export class MenuToggle {
157
157
  }
158
158
  this.#fixElement.style.top = `-${this.#y}px`;
159
159
  this.#fixElement.setAttribute('data-menu-fixed', 'true');
160
+ if (!this.#fixElementIsBody) {
161
+ // Bei nicht-body-Fix-Element bleibt der window-Scroll erhalten; ohne Reset
162
+ // erscheint ein absolut positioniertes Menü um den vorherigen Scroll-Betrag verschoben.
163
+ window.scrollTo(0, 0);
164
+ }
160
165
  }
161
166
 
162
167
  #adjustShiftElementWidth() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@profitlich/template-toolkit",
3
- "version": "5.2.2",
3
+ "version": "5.2.3",
4
4
  "description": "Shared SCSS layout system, JS utilities, components and build scripts for profitlich template repos",
5
5
  "type": "module",
6
6
  "sass": "scss/forward.scss",