File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -925,9 +925,13 @@ class CleanOne extends PrintBranchMixin(
925
925
}
926
926
// only way to hit this
927
927
document . body . style . overflow = "hidden" ;
928
+ this . HAXCMSThemeSettings . scrollTarget =
929
+ this . shadowRoot . querySelector ( "main" ) ;
930
+ globalThis . AbsolutePositionStateManager . requestAvailability ( ) . scrollTarget =
931
+ this . HAXCMSThemeSettings . scrollTarget ;
928
932
// hook up the scroll target
929
933
this . shadowRoot . querySelector ( "scroll-button" ) . target =
930
- this . shadowRoot . querySelector ( "#haxcms-theme-top " ) ;
934
+ this . shadowRoot . querySelector ( "main " ) ;
931
935
932
936
const params = new URLSearchParams ( store . currentRouterLocation . search ) ;
933
937
// if we have a search param already, set it to the field on open
Original file line number Diff line number Diff line change @@ -925,9 +925,13 @@ class CleanOne extends PrintBranchMixin(
925
925
}
926
926
// only way to hit this
927
927
document . body . style . overflow = "hidden" ;
928
+ this . HAXCMSThemeSettings . scrollTarget =
929
+ this . shadowRoot . querySelector ( "main" ) ;
930
+ globalThis . AbsolutePositionStateManager . requestAvailability ( ) . scrollTarget =
931
+ this . HAXCMSThemeSettings . scrollTarget ;
928
932
// hook up the scroll target
929
933
this . shadowRoot . querySelector ( "scroll-button" ) . target =
930
- this . shadowRoot . querySelector ( "#haxcms-theme-top " ) ;
934
+ this . shadowRoot . querySelector ( "main " ) ;
931
935
932
936
const params = new URLSearchParams ( store . currentRouterLocation . search ) ;
933
937
// if we have a search param already, set it to the field on open
You can’t perform that action at this time.
0 commit comments