Skip to content

Decimal value for Slider step does not work #967

Closed
@pabueco

Description

@pabueco

When you use a decimal value for the step property you don't get decimal values. The value of the slider is always an integer.

<Slider v-model="value1" :step="0.1" />

I also tried using decimal values for the min and max props, but that does not make a difference.

<Slider v-model="value1" :step="0.1" :min="0.5" :max="10.0" />

I tried it with both Vue versions (2.x and 3.x).

Example: https://codesandbox.io/s/xenodochial-butterfly-puv1i?file=/src/components/SliderDemo.vue

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type: BugIssue contains a bug related to a specific component. Something about the component is not workingvue2-portable

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions