Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial range input displayed value rounded when value specified before step #679

Open
plarner30 opened this issue Jan 28, 2020 · 1 comment
Assignees

Comments

@plarner30
Copy link

plarner30 commented Jan 28, 2020

I'm submitting a bug report
Windows 10
Chrome 79.0.3945.130

Current behaviour
Initial range input model value correct but slider visual position rounded. In example below slider will show the min value. Current fix is to specify value.bind after step.bind.

What is the expected behavior?
Initial position of range input slider visually correct

export class RangeInputComponent {
min = 0;
max = 1;
step = 0.2;
value = 0.2;
}
<template>
<input type="range" 
      min.bind="min" 
      max.bind="max"       
      value.bind="value"
      step.bind="step"  />
</template>

Similar issue in React: facebook/react#7099

@bigopon
Copy link
Member

bigopon commented Jan 28, 2020

@plarner30 thanks for reporting this issue & the link. We've fixed this in v2, but haven't done so in v1. Will probably have a fix for this

cc @Sayan751 @fkleuver @EisenbergEffect

@bigopon bigopon self-assigned this Jan 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants