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

rate-component shows half stars when allowHalf is false and formControl has decimal value #8535

Open
imaliouris opened this issue May 9, 2024 · 0 comments
Labels
👌 Already Fixed There is already a PR trying to solve this Component: Rate

Comments

@imaliouris
Copy link

imaliouris commented May 9, 2024

Reproduction link

https://stackblitz.com/edit/stackblitz-starters-chf7ns?file=README.md

Steps to reproduce

  • Add a new rate component
  • Set nzAllowHalf to false
  • Set decimal value i.e. 3.5

What is expected?

The component should show only 3 stars as selected and ignore the halves as the nzAllowHalf is set to false

What is actually happening?

The component shows 3.5 stars as selected instead of only the 3

Environment Info
ng-zorro-antd 17.4.0
Browser Google Chrome
@Laffery Laffery added the 👌 Already Fixed There is already a PR trying to solve this label May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👌 Already Fixed There is already a PR trying to solve this Component: Rate
Projects
None yet
Development

No branches or pull requests

2 participants