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

Can't reset ratingValue #7

Closed
CharlieGroves opened this issue Dec 12, 2021 · 2 comments
Closed

Can't reset ratingValue #7

CharlieGroves opened this issue Dec 12, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@CharlieGroves
Copy link

I have the rating as a part of a form, which when submitted eventually resets the star rating but the rating is not being reactive:

const handleReview = (e) => { ... setRating(0); ... };

<Rating allowHalfIcon onClick={handleRating} ratingValue={rating} />

Is there a different way to do this?

awran5 added a commit that referenced this issue Dec 13, 2021
@awran5
Copy link
Owner

awran5 commented Dec 13, 2021

Hello @CharlieGroves

Sorry for the late response. I just pushed a fix that should fix this issue. Please follow this example and let me know if it fixed.

@awran5 awran5 added the enhancement New feature or request label Dec 13, 2021
@CharlieGroves
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants