You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on past and open issues, it sounds like onClick callback execution has been updated to not fire when disabled === true for some but not all elements. I think Icons should not execute onClick callbacks when disabled === true to maintain parity with other elements (eg Button) which have been updated to maintain parity with HTML.
Steps
A clear and concise description of steps to reproduce the problem.
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you've completed all the fields in the issue template so we can best help.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
layershifter
changed the title
Icondisabled prop should disable onClick callback
Icon: disabled prop should disable onClick callback
Dec 24, 2018
Bug Report
Based on past and open issues, it sounds like
onClick
callback execution has been updated to not fire whendisabled === true
for some but not all elements. I thinkIcon
s should not executeonClick
callbacks whendisabled === true
to maintain parity with other elements (egButton
) which have been updated to maintain parity with HTML.Steps
A clear and concise description of steps to reproduce the problem.
Click the icon.
Expected Result
When the icon is clicked, the
onClick
callback should not be called and "hi" should not be logged.Actual Result
When the icon is clicked, "hi" is logged.
Version
0.82.3
Testcase
https://codesandbox.io/s/2o4qo44vrn
The text was updated successfully, but these errors were encountered: