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

Stars duplicate when using browser's navigation (Back arrow in Chrome) #201

Open
jedrekdomanski opened this issue Feb 28, 2017 · 2 comments

Comments

@jedrekdomanski
Copy link

jedrekdomanski commented Feb 28, 2017

I have a page with a list of ratings of movies and a page where I give a comment to a movie. When I go back to this page from movie's comment form using Back arrow in Chrome navigation then the stars get duplicated so instead of default 5 stars I have 10. Is there a way to fix this?

@aryehbeitz
Copy link

I also ran into this problem. I solved it by re initializing raty with an empty object in the onload block before your actual initialization

@HemanthkumarHJ
Copy link

HemanthkumarHJ commented Jan 17, 2018

I also facing the same problem. But in my case this is not working in pagination. It works correctly for first page and when it comes second page the stars get duplicated. How to fix this?

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

No branches or pull requests

3 participants