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
Bug: onMouseLeave does not trigger on disabled button #18753
Comments
If you put the button inside a div, event works fine! But I don't know the reason:
|
has been resolved by |
Hi everyone! I am new to open source .If this issue isn't closed, I would like to work on this? |
Pointer Events seem to resolve this issue, so I'll be using those going forward. This issue is more related to how browsers handle mouse events, so I'll be closing this. |
FYI Using |
Derived from #4251 (comment)
React version: 16.13.1
Steps To Reproduce
Link to code example: https://codesandbox.io/s/gracious-galileo-qymqw?file=/src/App.js
The current behavior
onMouseLeave
is not triggered on disabled buttonThe expected behavior
onMouseLeave
should be triggered on disabled buttonI don't think #17675 actually made
onMouseEnter
not fire on disabled buttons, since in the example that I've given, it is firing and using the latest React version (the PR has been shipped in 16.13.0)The text was updated successfully, but these errors were encountered: