Open lordplagus02 opened 4 years ago
I would reinitiate RateIt it whenever the parent gets shown. When we initiate it, we calculate the width and height, in order to know how much is "rating" is each mouse move. When it is hidden there is no width nor height.
Parent elements that have a css attribute of "display: none" somewhere during DOM load prevents the rating bar from displaying any stars or receiving any clicks. The stars remain empty regardless of value.