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

When there are multiple controls on a page, rating-caption has the same value #68

Open
jiajie1212 opened this issue Feb 15, 2019 · 0 comments

Comments

@jiajie1212
Copy link

Terms of settlement,There are three areas that need to be revised:
1
.on('mouseenter', '[data-value]', function () {
....
$(this).siblings('.rating-caption').text(caption_list[index]);
}
2
.on('mouseleave', '[data-value]', function () {
....
if (val >= min && val <= max) {
...
$(this).siblings('.rating-caption').text(caption_list[index]);
} else {
_clearValue(self.closest('.rating-input'));
$(this).siblings('.rating-caption').text('');
}
}
3
.each(function () {
....
$(this).children(".rating-caption").text(caption_list[index]);
}

@jiajie1212 jiajie1212 changed the title When a page has two controls, rating-caption has the same value When there are multiple controls on a page, rating-caption has the same value Feb 15, 2019
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

1 participant