[BUG] onTap
callback fires when button has disabled prop set to true
#3055
Labels
bug
Something isn't working
Using the onTap callback on
motion.button
elements works fine all the time. But it shouldn't fire when the disabled prop of the element is set to trueCode reproduction on Stackblitz : Motion app on stack blitz
Steps to reproduce:
will fire
button - the onTap handler fires which is not expectedExpected behavior
The onTap callback handler should not fire when a button is disabled. It should act like a onClick handler.
Environment details
OS: Windows 11 Pro Build 22000.194
Browser: Tested on Firefox and Zen browser
Browser version: Zen v 1.7.6b
The text was updated successfully, but these errors were encountered: