Skip to content

Commit 96f80be

Browse files
committed
fix: slider oob swap
1 parent 6f0317e commit 96f80be

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

resources/views/components/range-slider.blade.php

+5-3
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
@pushOnce('customJs')
5353
<script src="{{ asset('libs/nouislider/dist/nouislider.min.js') }}"></script>
54-
<script>
54+
<script hx-swap-oob="true" id="slider-format">
5555
let formatForSlider = {
5656
from: function(formattedValue) {
5757
return Number(formattedValue);
@@ -64,7 +64,7 @@
6464
@endPushOnce
6565

6666
@push('customJs')
67-
<script>
67+
<script hx-swap-oob="true" id="slider-config">
6868
function sliderConfig() {
6969
7070
let from = parseInt('{{ $from }}')
@@ -120,6 +120,8 @@ function sliderConfig() {
120120
slider.noUiSlider.set([null, value]);
121121
})
122122
}
123-
sliderConfig()
123+
$(function() {
124+
sliderConfig()
125+
})
124126
</script>
125127
@endpush

0 commit comments

Comments
 (0)