@asd20/ui-next 2.12.2 → 2.12.3
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.12.3](https://github.com/academydistrict20/asd20-ui-next/compare/ui-next-v2.12.2...ui-next-v2.12.3) (2026-05-27)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* fix background display when search flyout is opened ([4483b69](https://github.com/academydistrict20/asd20-ui-next/commit/4483b693a070d0d67c56b9caf1396eb174419777))
|
|
9
|
+
|
|
3
10
|
## [2.12.2](https://github.com/academydistrict20/asd20-ui-next/compare/ui-next-v2.12.1...ui-next-v2.12.2) (2026-05-27)
|
|
4
11
|
|
|
5
12
|
## [2.12.1](https://github.com/academydistrict20/asd20-ui-next/compare/ui-next-v2.12.0...ui-next-v2.12.1) (2026-05-26)
|
package/package.json
CHANGED
|
@@ -2067,27 +2067,7 @@ export default {
|
|
|
2067
2067
|
return
|
|
2068
2068
|
}
|
|
2069
2069
|
if (this.bodyScrollLock) return
|
|
2070
|
-
|
|
2071
|
-
const body = document.body
|
|
2072
|
-
const scrollY =
|
|
2073
|
-
window.pageYOffset || docEl.scrollTop || body.scrollTop || 0
|
|
2074
|
-
|
|
2075
|
-
this.bodyScrollLock = {
|
|
2076
|
-
scrollY,
|
|
2077
|
-
bodyOverflow: body.style.overflow,
|
|
2078
|
-
bodyPosition: body.style.position,
|
|
2079
|
-
bodyTop: body.style.top,
|
|
2080
|
-
bodyWidth: body.style.width,
|
|
2081
|
-
docOverflow: docEl.style.overflow,
|
|
2082
|
-
}
|
|
2083
|
-
|
|
2084
|
-
body.classList.add('asd20-site-search--scroll-locked')
|
|
2085
|
-
docEl.classList.add('asd20-site-search--scroll-locked')
|
|
2086
|
-
body.style.position = 'fixed'
|
|
2087
|
-
body.style.top = `-${scrollY}px`
|
|
2088
|
-
body.style.width = '100%'
|
|
2089
|
-
body.style.overflow = 'hidden'
|
|
2090
|
-
docEl.style.overflow = 'hidden'
|
|
2070
|
+
this.bodyScrollLock = true
|
|
2091
2071
|
},
|
|
2092
2072
|
|
|
2093
2073
|
unlockBodyScroll() {
|
|
@@ -2095,20 +2075,7 @@ export default {
|
|
|
2095
2075
|
return
|
|
2096
2076
|
}
|
|
2097
2077
|
if (!this.bodyScrollLock) return
|
|
2098
|
-
const { scrollY } = this.bodyScrollLock
|
|
2099
|
-
const docEl = document.documentElement
|
|
2100
|
-
const body = document.body
|
|
2101
|
-
|
|
2102
|
-
body.classList.remove('asd20-site-search--scroll-locked')
|
|
2103
|
-
docEl.classList.remove('asd20-site-search--scroll-locked')
|
|
2104
|
-
body.style.overflow = this.bodyScrollLock.bodyOverflow || ''
|
|
2105
|
-
body.style.position = this.bodyScrollLock.bodyPosition || ''
|
|
2106
|
-
body.style.top = this.bodyScrollLock.bodyTop || ''
|
|
2107
|
-
body.style.width = this.bodyScrollLock.bodyWidth || ''
|
|
2108
|
-
docEl.style.overflow = this.bodyScrollLock.docOverflow || ''
|
|
2109
2078
|
this.bodyScrollLock = null
|
|
2110
|
-
|
|
2111
|
-
window.scrollTo(0, scrollY || 0)
|
|
2112
2079
|
},
|
|
2113
2080
|
|
|
2114
2081
|
scrollResultsToTop() {
|