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

Transition of popup doesn't work when uses this package. #229

Open
hc0503 opened this issue Mar 23, 2022 · 3 comments
Open

Transition of popup doesn't work when uses this package. #229

hc0503 opened this issue Mar 23, 2022 · 3 comments
Labels
stale Stale issue with no response or lack of info

Comments

@hc0503
Copy link

hc0503 commented Mar 23, 2022

This is my comment modal style.

.commentModal {
	background-color: var(--theme-chapter-toolbar-bg-color);
	position: fixed;
	top: 62px;
	right: 5px;
	width: 400px;
	bottom: 5px;
	box-shadow: -2px 1px 9px 0px rgb(85 85 85 / 13%);
	padding: 30px;
	border: 1px solid var(--theme-chapter-toolbar-border-color);
	border-radius: 5px;
	z-index: 3;
	transition: all 0.3s ease-in-out;

	&:global(.comment-modal-enter) {
		transform:translateX(100%);
	}

	&:global(.comment-modal-enter-active) {
		transform:translateX(0);
	}

	&:global(.comment-modal-exit) {
		transform:translateX(0);
	}

	&:global(.comment-modal-exit-active) {
		transform:translateX(100%);
	}
}

This is code to show comment modal using CSSTransition.

<CSSTransition
    in={showCommentModal}
    timeout={300}
    classNames="comment-modal"
    unmountOnExit
    >
    <CommentModal
	    onCloseClick={() => setShowCommentModal(false)}
    />
</CSSTransition>

When the modal has react-dropdown-select, the screenshot is following.
The opening transition doesn't work now.

2022-03-23_23-57-54.mp4

But if I remove react-dropdown-select in modal, the transition works well.

2022-03-24_00-02-46.mp4
@stale
Copy link

stale bot commented Jul 31, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Stale issue with no response or lack of info label Jul 31, 2022
@sanusart sanusart removed the stale Stale issue with no response or lack of info label Jul 31, 2022
@stale
Copy link

stale bot commented Oct 30, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Stale issue with no response or lack of info label Oct 30, 2022
@sanusart sanusart removed the stale Stale issue with no response or lack of info label Oct 30, 2022
@stale
Copy link

stale bot commented May 22, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Stale issue with no response or lack of info label May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Stale issue with no response or lack of info
Projects
None yet
Development

No branches or pull requests

2 participants