-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
fix(notice): fix limit 1 on useNotice does not work #708
Conversation
🦋 Changeset detectedLatest commit: 47794e0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@108yen
When I press the button quickly and repeatedly, sometimes more than one notice appears, even when the limit value is 1.
If Yamada UI uses framer-motion internally, this may be a bug of it.
2024-02-08.17.25.15.mov
@illionillion Removing AnimatePresence in
|
@108yen |
@illionillion notice.mp4 |
That's not good. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved
Closes #695
Description
fix limit 1 on useNotice does not work
Current behavior (updates)
Setting the limit value to 1 does not limit the number of displays.
New behavior
If the limit is set to 1, only one is displayed.
If an invalid value such as -1 is set for the limit value, it is ignored.
Is this a breaking change (Yes/No): No
Additional Information
NIL