Skip to content

Conversation

@kyletsang
Copy link
Collaborator

Adds new props to control the rendering of the modal. I'm going to use this to fix the behavior of the offcanvas component in react-bootstrap to match upstream's behavior and better support the responsive use case.

mountDialogOnEnter - Whether or not the dialog is initially mounted in the DOM
unmountDialogOnExit - Whether or not the dialog element is unmounted when modal is hidden
portal - render using a portal or in place

@kyletsang kyletsang requested a review from jquense March 28, 2025 05:33

export interface ImperativeTransitionProps extends TransitionProps {
transition: TransitionHandler;
appear: true;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These types conflict with the new code since they are used as an intersection with the regular transition props. Since they aren't used in the code, can we remove?

Copy link
Member

Choose a reason for hiding this comment

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

I think these are here bc the run transition version doesn't support other values

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I removed it, and seems to be ok from my testing. Is this good to merge @jquense ?

@kyletsang kyletsang merged commit 484723f into main May 13, 2025
7 checks passed
@kyletsang kyletsang deleted the new-modal-props branch May 13, 2025 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants