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

Mouse enter event not being emitted on root component fix #233

Open
wants to merge 3 commits into
base: 1.20.5
Choose a base branch
from

Conversation

Stuff-Stuffs
Copy link

This fixes the mouse enter event not being emitted for root components or when using the Layer api. This is caused by the check to bypass the event if the component has no root component(ie current component is the root). The fix is just to only bypass the event if there is a root. However to keep the behavior of checking if a child should receive the event instead I also had to override updateHoveredState in BaseParentComponent to add the case that the current component might be the root and have children.

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

Successfully merging this pull request may close these issues.

1 participant