@riosst100/pwa-marketplace 2.5.9 → 2.6.0
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/components/FilterTop/filterTop.js +3 -3
- package/src/overwrites/peregrine/lib/talons/FilterSidebar/useFilterSidebar.js +4 -2
- package/src/overwrites/venia-ui/lib/components/FilterModal/CurrentFilters/currentFilters.js +3 -3
- package/src/overwrites/venia-ui/lib/components/FilterSidebar/filterSidebar.js +3 -3
- package/src/overwrites/venia-ui/lib/components/FilterSidebar/filterSidebar.module.css +1 -1
package/package.json
CHANGED
|
@@ -60,9 +60,9 @@ const FilterTop = props => {
|
|
|
60
60
|
typeof filterElement.getBoundingClientRect === 'function'
|
|
61
61
|
) {
|
|
62
62
|
const filterTop = filterElement.getBoundingClientRect().top;
|
|
63
|
-
const windowScrollY =
|
|
64
|
-
|
|
65
|
-
window.scrollTo(0, windowScrollY);
|
|
63
|
+
// const windowScrollY =
|
|
64
|
+
// window.scrollY + filterTop - SCROLL_OFFSET;
|
|
65
|
+
// window.scrollTo(0, windowScrollY);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
handleApply(...args);
|
|
@@ -153,8 +153,10 @@ export const useFilterSidebar = props => {
|
|
|
153
153
|
// Add frontend input type
|
|
154
154
|
frontendInput.set(group, null);
|
|
155
155
|
// add items
|
|
156
|
-
for (const { label, value, path } of options) {
|
|
157
|
-
|
|
156
|
+
for (const { label, value, path, count } of options) {
|
|
157
|
+
if (count > 0) {
|
|
158
|
+
items.push({ title: stripHtml(label), value, path, count });
|
|
159
|
+
}
|
|
158
160
|
}
|
|
159
161
|
}
|
|
160
162
|
itemsByGroup.set(group, items);
|
|
@@ -20,9 +20,9 @@ const CurrentFilters = props => {
|
|
|
20
20
|
const { title, value } = item || {};
|
|
21
21
|
const key = `${group}::${title}_${value}`;
|
|
22
22
|
|
|
23
|
-
const customAttributeLandingPage = ['bricks_categories','sc_sports_categories','card_game',
|
|
23
|
+
const customAttributeLandingPage = ['bricks_categories','sc_sports_categories','card_game', 'sc_baseball_release','auction','special_price','lof_preorder','sc_baseball_inserts','sc_baseball_parallel','sc_set_type'];
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
if (!customAttributeLandingPage.includes(group)) {
|
|
26
26
|
elements.push(
|
|
27
27
|
<li key={key} className={classes.item}>
|
|
28
28
|
<CurrentFilter
|
|
@@ -34,7 +34,7 @@ const CurrentFilters = props => {
|
|
|
34
34
|
/>
|
|
35
35
|
</li>
|
|
36
36
|
);
|
|
37
|
-
|
|
37
|
+
}
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
@@ -49,9 +49,9 @@ const FilterSidebar = props => {
|
|
|
49
49
|
typeof filterElement.getBoundingClientRect === 'function'
|
|
50
50
|
) {
|
|
51
51
|
const filterTop = filterElement.getBoundingClientRect().top;
|
|
52
|
-
const windowScrollY =
|
|
53
|
-
|
|
54
|
-
window.scrollTo(0, windowScrollY);
|
|
52
|
+
// const windowScrollY =
|
|
53
|
+
// window.scrollY + filterTop - SCROLL_OFFSET;
|
|
54
|
+
// window.scrollTo(0, windowScrollY);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
handleApply(...args);
|