react-rating icon indicating copy to clipboard operation
react-rating copied to clipboard

onHover fires after onChange

Open rodriturnes opened this issue 7 years ago • 2 comments

Hi,

Whenever I click a star, the onChange() method is fired. CORRECT

But immediately, the onHover() method is called with value=1. INCORRECT

Is this a known issue?

Thanks for your help, amazing component!

rodriturnes avatar Jun 07 '18 20:06 rodriturnes

Uhm... Are you sure they are fired in that order? The correct order should be onHover first and then onChange. Because you hover over the symbol before you click it.

dreyescat avatar Jun 07 '18 20:06 dreyescat

screen shot 2018-06-07 at 5 58 15 pm

I hover over 3, then 4, click it and automatically fires onHover with value=1.

Strange, isn't it?

rodriturnes avatar Jun 07 '18 20:06 rodriturnes