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

nz-slider cannot jump to the exact value by clicking on the nzMarks labels #8526

Open
cjialouluoww opened this issue Apr 28, 2024 · 0 comments

Comments

@cjialouluoww
Copy link

Reproduction link

https://codesandbox.io/s/1ybqg3

Steps to reproduce

  1. Create nz-slider with nzMarks. Give it a large value range. Don't set nzSteps.
  2. Click on the mark labels. e.g. click on the label '26'.
  3. 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
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

1 participant