Skip to content

Commit

Permalink
fix: slider oob swap
Browse files Browse the repository at this point in the history
  • Loading branch information
itsemon245 committed Jul 3, 2024
1 parent 6f0317e commit 96f80be
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions resources/views/components/range-slider.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

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

@push('customJs')
<script>
<script hx-swap-oob="true" id="slider-config">
function sliderConfig() {
let from = parseInt('{{ $from }}')
Expand Down Expand Up @@ -120,6 +120,8 @@ function sliderConfig() {
slider.noUiSlider.set([null, value]);
})
}
sliderConfig()
$(function() {
sliderConfig()
})
</script>
@endpush

0 comments on commit 96f80be

Please sign in to comment.