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

fix(Dialog): prevent onClose event from firing in StrictMode when opening a new dialog #4525

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

tujoworker
Copy link
Member

@tujoworker tujoworker commented Feb 1, 2025

  • Also add handler to triggeredBy when the close method is called.
  • Improve the documentation of the triggeredBy property.
  • More info about the approach.
  • Thank you Ahmet for the good reprod. 🫶

…ning a new dialog

- Also add `handler` to `triggeredBy` when the `close` method is called.
- Improve the documentation of the `triggeredBy` property.
Copy link

vercel bot commented Feb 1, 2025

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 Feb 1, 2025 9:06am

Copy link

codesandbox-ci bot commented Feb 1, 2025

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.

@tujoworker tujoworker merged commit d24c0d3 into main Feb 4, 2025
11 checks passed
@tujoworker tujoworker deleted the fix/dialog-on-close-strict-mode branch February 4, 2025 07:37
tujoworker pushed a commit that referenced this pull request Feb 4, 2025
## [10.63.2](v10.63.1...v10.63.2) (2025-02-04)

### 🐛 Bug Fixes

* **Dialog:** prevent `onClose` event from firing in StrictMode when opening a new dialog ([#4525](#4525)) ([d24c0d3](d24c0d3))
* **Forms:** always revalidate on submit when data context changes ([#4532](#4532)) ([e0692d6](e0692d6))
* **Forms:** ensure `setFieldStatus` by useValidation does not throw when used without id ([#4529](#4529)) ([1a92512](1a92512))
* **Forms:** ensure `update('/path', undefined)` does not show error message ([#4531](#4531)) ([2dfd44a](2dfd44a))
@tujoworker
Copy link
Member Author

🎉 This PR is included in version 10.63.2 🎉

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