@tekkare/auriga 0.2.178 → 0.2.179
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/dist/module.json
CHANGED
|
@@ -106,11 +106,21 @@ export default defineComponent({
|
|
|
106
106
|
}
|
|
107
107
|
);
|
|
108
108
|
function openFromScroll() {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
109
|
+
const dropdown = Array.from(
|
|
110
|
+
document.getElementsByClassName("oip_select_dropdown_block")
|
|
111
|
+
);
|
|
112
|
+
const complex = Array.from(
|
|
113
|
+
document.getElementsByClassName("oip_select_complex_block")
|
|
114
|
+
);
|
|
115
|
+
const fullLength = dropdown.length + complex.length;
|
|
116
|
+
const allDropdownClosed = dropdown.every(
|
|
117
|
+
(a) => a?.attributes?.style?.value?.includes("display: none")
|
|
118
|
+
);
|
|
119
|
+
const allcomplexClosed = complex.every(
|
|
120
|
+
(a) => a?.attributes?.style?.value?.includes("display: none")
|
|
121
|
+
);
|
|
122
|
+
if (fullLength === 0 || allDropdownClosed && allcomplexClosed) {
|
|
123
|
+
filtersOpen.value = !props.autoOpen ? false : window.scrollY === 0;
|
|
114
124
|
}
|
|
115
125
|
}
|
|
116
126
|
onUpdated(() => {
|