@@ -52,7 +52,7 @@ function scrollToFirstProductIfNotVisible( wcNavigationId?: string ) {
52
52
return ;
53
53
}
54
54
55
- const productSelector = `[data-wc-navigation-id =${ wcNavigationId } ] .wc-block-product-template .wc-block-product` ;
55
+ const productSelector = `[data-wc-router-region =${ wcNavigationId } ] .wc-block-product-template .wc-block-product` ;
56
56
const product = document . querySelector ( productSelector ) ;
57
57
if ( product ) {
58
58
const rect = product . getBoundingClientRect ( ) ;
@@ -95,10 +95,10 @@ const productCollectionStore = {
95
95
const ctx = getContext < ProductCollectionStoreContext > ( ) ;
96
96
const { ref } = getElement ( ) ;
97
97
const wcNavigationId = (
98
- ref ?. closest ( '[data-wc-navigation-id ]' ) as HTMLDivElement
98
+ ref ?. closest ( '[data-wc-router-region ]' ) as HTMLDivElement
99
99
) ?. dataset ?. wcNavigationId ;
100
100
const isDisabled = (
101
- ref ?. closest ( '[data-wc-navigation-id ]' ) as HTMLDivElement
101
+ ref ?. closest ( '[data-wc-router-region ]' ) as HTMLDivElement
102
102
) ?. dataset . wcNavigationDisabled ;
103
103
104
104
if ( isDisabled ) {
@@ -150,7 +150,7 @@ const productCollectionStore = {
150
150
const { ref } = getElement ( ) ;
151
151
152
152
const isDisabled = (
153
- ref ?. closest ( '[data-wc-navigation-id ]' ) as HTMLDivElement
153
+ ref ?. closest ( '[data-wc-router-region ]' ) as HTMLDivElement
154
154
) ?. dataset . wcNavigationDisabled ;
155
155
156
156
if ( isDisabled ) {
@@ -173,7 +173,7 @@ const productCollectionStore = {
173
173
* prefetch ( ) {
174
174
const { ref } = getElement ( ) ;
175
175
const isDisabled = (
176
- ref ?. closest ( '[data-wc-navigation-id ]' ) as HTMLDivElement
176
+ ref ?. closest ( '[data-wc-router-region ]' ) as HTMLDivElement
177
177
) ?. dataset . wcNavigationDisabled ;
178
178
179
179
if ( isDisabled ) {
0 commit comments