Skip to content

Commit

Permalink
fix(ui5-dynamic-page): prevent scroll position reset on unpinning the…
Browse files Browse the repository at this point in the history
… header (#10441)
  • Loading branch information
NakataCode authored Jan 7, 2025
1 parent 5887d29 commit 9f5a67a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/fiori/src/DynamicPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,9 @@ class DynamicPage extends UI5Element {

async onPinClick() {
this.headerPinned = !this.headerPinned;
if (this.headerPinned) {
this.showHeaderInStickArea = true;
}
this.fireDecoratorEvent("pin-button-toggle");
await renderFinished();
this.headerActions?.focusPinButton();
Expand Down

0 comments on commit 9f5a67a

Please sign in to comment.