Skip to content

Commit

Permalink
fix(ui): slider number input field with limits (#2899)
Browse files Browse the repository at this point in the history
- Added min, max, and step fields to the input field of a slider
- Made the input field a number field to apply min, max, step, and accessibility
  • Loading branch information
Erb3 authored Jan 9, 2025
1 parent 0409fce commit 29d1ed3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/ui/src/components/base/Slider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,12 @@
<input
ref="value"
:value="currentValue"
type="text"
type="number"
class="slider-input"
:disabled="disabled"
:min="min"
:max="max"
:step="step"
@change="onInput(($event.target as HTMLInputElement).value)"
/>
</div>
Expand Down

0 comments on commit 29d1ed3

Please sign in to comment.