Skip to content

Commit

Permalink
fix: fix for #60
Browse files Browse the repository at this point in the history
  • Loading branch information
adamberecz committed Dec 20, 2022
1 parent 7b2786a commit 08cc711
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions src/composables/useSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,20 @@ export default function useSlider (props, context, dependencies)

// ============== WATCHERS ==============

watch(isRange, refresh, { immediate: false })
watch(min, refresh, { immediate: false })
watch(max, refresh, { immediate: false })
watch(step, refresh, { immediate: false })
watch(orientation, refresh, { immediate: false })
watch(direction, refresh, { immediate: false })
watch(tooltips, refresh, { immediate: false })
watch(merge, refresh, { immediate: false })
watch(format, refresh, { immediate: false, deep: true })
watch(options, refresh, { immediate: false, deep: true })
watch(classes, refresh, { immediate: false, deep: true })

watch(value, (value, old) => {
if (!old) {
if (!isNullish(old)) {
return
}

Expand All @@ -220,17 +232,6 @@ export default function useSlider (props, context, dependencies)
refresh()
}
}, { immediate: false })
watch(isRange, refresh, { immediate: false })
watch(min, refresh, { immediate: false })
watch(max, refresh, { immediate: false })
watch(step, refresh, { immediate: false })
watch(orientation, refresh, { immediate: false })
watch(direction, refresh, { immediate: false })
watch(tooltips, refresh, { immediate: false })
watch(merge, refresh, { immediate: false })
watch(format, refresh, { immediate: false, deep: true })
watch(options, refresh, { immediate: false, deep: true })
watch(classes, refresh, { immediate: false, deep: true })

watch(value, (newValue) => {
if (isNullish(newValue)) {
Expand Down

0 comments on commit 08cc711

Please sign in to comment.