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

[Bug]: DialogSurface backdrop onTransitionEnd isn't getting called in react <18 #34056

Closed
2 tasks done
OEvgeny opened this issue Mar 20, 2025 · 2 comments
Closed
2 tasks done

Comments

@OEvgeny
Copy link

OEvgeny commented Mar 20, 2025

Component

Dialog

Package version

9.61.2

React version

16.14.0

Environment

https://bolt.new/~/stackblitz-starters-a8nlcv7j

Current Behavior

No console.log message and no debugger getting called

Expected Behavior

Should trigger the onTransitionEnd when Dialog's surface transition is completed.

Reproduction

https://bolt.new/~/stackblitz-starters-a8nlcv7j

Steps to reproduce

  1. Open the link above,
  2. Open development tools
  3. Wait for page to load
  4. Click on the "Open dialog" button
  5. Close the dialog
  6. Observe no console.log message and no debugger getting called

Are you reporting an Accessibility issue?

no

Suggested severity

High - No workaround

Products/sites affected

No response

Are you willing to submit a PR to fix?

no

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.
@bsunderhus
Copy link
Contributor

bsunderhus commented Mar 20, 2025

@OEvgeny there are no CSS Transition in the Dialog backdrop. we use web animations API to do the animation there... we are exposing the motion API through the backdropMotion slot.

Here's how you can access it: https://stackblitz.com/edit/n9td5ssy?file=src%2Fexample.tsx

@bsunderhus
Copy link
Contributor

Here's more documentation in our Motion API https://react.fluentui.dev/?path=/docs/motion-motion-slot--docs

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

No branches or pull requests

2 participants