This commit is contained in:
wychoong
2024-07-30 23:45:51 +08:00
parent d18bd1f179
commit 93aa4c6620
3 changed files with 0 additions and 19 deletions
-1
View File
@@ -26,7 +26,6 @@
"alpinejs": "^3.10.4",
"async-alpine": "v1.2.1",
"autoprefixer": "^10.4.0",
"body-scroll-lock": "^4.0.0-beta.0",
"chart.js": "^3.6.0",
"chartjs-adapter-luxon": "^1.3.1",
"choices.js": "^10.1.0",
-7
View File
@@ -1,6 +1,5 @@
import AlpineFloatingUI from '@awcodes/alpine-floating-ui'
import AlpineLazyLoadAssets from 'alpine-lazy-load-assets'
// import { clearAllBodyScrollLocks, disableBodyScroll } from 'body-scroll-lock'
import { md5 } from 'js-md5'
import Sortable from './sortable'
import Tooltip from '@ryangjchandler/alpine-tooltip'
@@ -17,10 +16,6 @@ document.addEventListener('alpine:init', () => {
window.Alpine.plugin(Tooltip)
})
// document.addEventListener('livewire:navigating', () => {
// clearAllBodyScrollLocks()
// })
// https://github.com/laravel/framework/blob/5299c22321c0f1ea8ff770b84a6c6469c4d6edec/src/Illuminate/Translation/MessageSelector.php#L15
const pluralize = function (text, number, variables) {
function extract(segments, number) {
@@ -110,7 +105,5 @@ const pluralize = function (text, number, variables) {
)
}
// window.clearAllBodyScrollLocks = clearAllBodyScrollLocks
// window.disableBodyScroll = disableBodyScroll
window.jsMd5 = md5
window.pluralize = pluralize
@@ -71,14 +71,6 @@
this.$refs.modalContainer.dispatchEvent(
new CustomEvent('modal-closed', { id: '{{ $id }}' }),
)
{{-- this.$nextTick(() => {
if (document.getElementsByClassName('fi-modal-open').length) {
return
}
window.clearAllBodyScrollLocks()
}) --}}
},
open: function () {
@@ -89,9 +81,6 @@
new CustomEvent('modal-opened', { id: '{{ $id }}' }),
)
})
{{-- window.clearAllBodyScrollLocks()
window.disableBodyScroll(this.$root) --}}
},
}"
@if ($id)