Skip to content

feat(Modal): add new render options for modal #122

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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
@@ -63,9 +63,6 @@ export function useTransition({

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

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.

2 participants