nz-slider cannot jump to the exact value by clicking on the nzMarks labels
Opened this issue · 0 comments
cjialouluoww commented
Reproduction link
https://codesandbox.io/s/1ybqg3
Steps to reproduce
- Create nz-slider with nzMarks. Give it a large value range. Don't set nzSteps.
- Click on the mark labels. e.g. click on the label '26'.
- If you click the head of that label, the value will jump to 25 instead of 26.
What is expected?
Jump to the exact value on the label.
What is actually happening?
If you click on the head/end of that label, the pointer will jump to the value before or after.
Environment | Info |
---|---|
ng-zorro-antd | 17.4.0 |
Browser | firefox |