rafgraph / react-interactive

Better hover, active and focus states than CSS pseudo-classes, and a callback when the interactive state changes.
https://react-interactive.rafgraph.dev
MIT License
167 stars 8 forks source link

Fix focus state issue for nested Interactive components #2

Closed rafgraph closed 7 years ago

rafgraph commented 7 years ago

Use a focus registry to track events that cause focus/blur calls (e.g. mousedown) so focus/blur is not called twice as event bubbles through nested Interactive components.