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

TwitterPicker hover event changes the color in the selector input #459

Closed
rhernandog opened this issue Dec 30, 2017 · 1 comment · Fixed by #612
Closed

TwitterPicker hover event changes the color in the selector input #459

rhernandog opened this issue Dec 30, 2017 · 1 comment · Fixed by #612

Comments

@rhernandog
Copy link

rhernandog commented Dec 30, 2017

Hi,

When I include a onSwatchHover to the twitter picker component, in the input at the end of the color swatches the color HEX code changes to the one being hovered, but it doesn't returns to the current selected color. Without the onSwatchHover event handler, the component works as expected, the color in the input field is not updated on hover, just on click.

The behavior that I expect is the color to be updated only in the onClick event regardless if a mouse over event is present.

Here's a live sample with the issue:
Edit n72ojn8jkm

If you run the sample and hover over any swatch, you'll see the color hex code updated in the input field. If you delete the code in line 27 on index.js you won't see that and the color code will update only with the onClick event.

@casesandberg
Copy link
Owner

This is quite bizarre.

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

Successfully merging a pull request may close this issue.

2 participants