Skip to content
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

feat(Forms): add onAnimationEnd property to Form.Visibility #4356

Merged
merged 6 commits into from
Dec 4, 2024

Conversation

tujoworker
Copy link
Member

@tujoworker tujoworker commented Dec 4, 2024

I think we should use onVisible for both the animated and non-animated state change. Here is the related PR #4350

While onAnimationEnd should be used to determine if the animated has "ended". Pretty much like HeightAnimation works.

@tujoworker tujoworker requested a review from langz December 4, 2024 08:03
Copy link

vercel bot commented Dec 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
eufemia ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 4, 2024 9:24am

Copy link
Contributor

@langz langz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, this is much easier to understand now 👏
Will it call onAnimationEnd on both in and out animation?

@tujoworker
Copy link
Member Author

Will it call onAnimationEnd on both in and out animation?

Yes.

Copy link

codesandbox-ci bot commented Dec 4, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link
Contributor

@langz langz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great 🤩

I added two commits:

  • Added reference to HeightAnimationEvents.onOpen.type in event docs 7388a01
  • Moved events docs into its own page c095529

@tujoworker tujoworker merged commit 87728b4 into main Dec 4, 2024
10 checks passed
@tujoworker tujoworker deleted the feat/forms-visibility-on-visible branch December 4, 2024 13:19
tujoworker pushed a commit that referenced this pull request Dec 10, 2024
## [10.60.0](v10.59.0...v10.60.0) (2024-12-10)

### 📝 Documentation

* **Upload:** adds `exists` to file object ([#4346](#4346)) ([52f8b2f](52f8b2f))
* **Upload:** adds exists to docs ([b6baa64](b6baa64))

### ✨ Features

* **Field.Upload:** add `onFileClick` event ([#4369](#4369)) ([c892eec](c892eec))
* **Forms:** add `Form.InfoOverlay` to display error, success (receipt), or custom messages to users ([#4357](#4357)) ([9dd8402](9dd8402))
* **Forms:** add `onAnimationEnd` property to Form.Visibility ([#4356](#4356)) ([87728b4](87728b4)), closes [#4350](#4350)
* **Forms:** add `onVisible` property to Form.Visibility ([#4350](#4350)) ([41306d8](41306d8))
* host fonts in the public directory ([#4359](#4359)) ([e6e08b2](e6e08b2))
* **Upload:** add support for async `onFileClick` event ([#4370](#4370)) ([82588c1](82588c1))
* **Upload:** adds `onFileClick` event ([#4365](#4365)) ([c5abd0e](c5abd0e))
* **Upload:** adds support for async `onFileDelete` ([#4351](#4351)) ([f41e42d](f41e42d))
* **Value.Upload:** add `onFileClick` event ([#4367](#4367)) ([56e9caf](56e9caf))

### 🐛 Bug Fixes

* **Dropdown:** enhance height calcilation and add support for strict `direction="bottom"` usage, including when used in a Dialog component ([#4368](#4368)) ([32b7b5b](32b7b5b))
* **Field.Upload:** handling of multiple async file uploads ([#4360](#4360)) ([5cb1518](5cb1518))
* **Forms:** avoid unnecessary rerenders in Form.Handler ([#4363](#4363)) ([7de5e49](7de5e49)), closes [#4357](#4357)
@tujoworker
Copy link
Member Author

🎉 This PR is included in version 10.60.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants