From 92d54086f2a55279468b1351c97e68bfa73b3a2d Mon Sep 17 00:00:00 2001 From: davay Date: Fri, 8 Jul 2022 14:45:12 +0300 Subject: [PATCH] fix: add min and max attrs to the input --- packages/histoire-controls/src/components/slider/HstSlider.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/histoire-controls/src/components/slider/HstSlider.vue b/packages/histoire-controls/src/components/slider/HstSlider.vue index a6864903..a6a502e5 100644 --- a/packages/histoire-controls/src/components/slider/HstSlider.vue +++ b/packages/histoire-controls/src/components/slider/HstSlider.vue @@ -64,7 +64,7 @@ const tooltipStyle = computed(() => { v-model.number="numberModel" class="htw-range-input htw-appearance-none htw-border-0 htw-bg-transparent htw-cursor-pointer htw-relative htw-w-full htw-m-0 htw-text-gray-700" type="range" - v-bind="{ ...$attrs, class: null, style: null }" + v-bind="{ ...$attrs, class: null, style: null, min, max }" @mouseover="showTooltip = true" @mouseleave="showTooltip = false" >