awran5 / react-simple-star-rating

A simple react component for adding a star rating to your project.
https://react-simple-star-rating.vercel.app/
MIT License
136 stars 32 forks source link

init stars on mouse leave #52

Open konapaz opened 1 year ago

konapaz commented 1 year ago

For better UI/UX stars should be as init selected after of mouse out (leave).

Assume stars are init of 2 of 5. when users hovered on the other stars then seems selected (this is ok). But when mouse out entirly of block of stars (and without click in one of the stars). it should be selected as before of hovering. But this not happen

Its not problem with state managment, even if I set the init by new state (useState) the stars remains selected of the last hover (except if unmount and mount entire component).

I think this is a bug or a UI/UX gap. How to solve this ? or waiting for a new verion ?