Fix modal transition delays by making TransitionGroup name conditional #2845
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The issue was that multiple modals rendered through
useModalandBApphad noticeable delays due to forced transitions inBOrchestrator. TheTransitionGroupwithname="b-list"applied a 0.5s cubic-bezier transition to all orchestrated elements (modals, toasts, popovers), even whennoAnimation=truewas set on individual modals.Root Cause
The
b-listtransition was originally intended for toast animations but was being applied globally to all elements in the orchestrator, causing unwanted delays when stacking multiple modals.Solution
Made the transition name conditional based on the content type:
This ensures:
Testing
Added comprehensive unit tests to verify the conditional behavior works correctly for different combinations of modal and toast elements. Manual testing confirms modals now open instantly without delays while toast animations remain smooth.
Fixes #2839.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.