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
The button's disableAnimation prop should disable the rescaling animation on press. However, we currently need to add a data-[pressed=true]:scale-100 class override as well in order to achieve that.
I traced it to this line in the button component's source code, which seems to be getting applied even when we pass disableAnimation, likely due to this change
I believe that change accidentally broke the expected behavior of the disableAnimation prop, and would request that you re-disable the scaling behavior on press when disableAnimation is false.
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
You can see it not working in Storybook. It seems like it removes the smooth transition but keeps the button resizing on press effect.
Expected behavior
I would expect the button not to resize on press when disableAnimation is passed in.
Screenshots or Videos
No response
Operating System Version
MacOS
Browser
Chrome
The text was updated successfully, but these errors were encountered:
NextUI Version
@nextui-org/button@2.0.31
Describe the bug
The button's
disableAnimation
prop should disable the rescaling animation on press. However, we currently need to add adata-[pressed=true]:scale-100
class override as well in order to achieve that.disableAnimation
, likely due to this changedisableAnimation
prop, and would request that you re-disable the scaling behavior on press whendisableAnimation
is false.Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
You can see it not working in Storybook. It seems like it removes the smooth transition but keeps the button resizing on press effect.
Expected behavior
I would expect the button not to resize on press when
disableAnimation
is passed in.Screenshots or Videos
No response
Operating System Version
MacOS
Browser
Chrome
The text was updated successfully, but these errors were encountered: