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

<ConfirmModal />微調整 #193

Merged
merged 1 commit into from
Oct 9, 2020
Merged

<ConfirmModal />微調整 #193

merged 1 commit into from
Oct 9, 2020

Conversation

youchann
Copy link
Contributor

@youchann youchann commented Oct 9, 2020

No description provided.

@youchann youchann self-assigned this Oct 9, 2020
<Modal isOpen={isOpen} onClose={onClose}>
<Fade in={isOpen}>
<Modal isOpen={isOpen} onClose={onClose} {...modalProps}>
<Fade in={isOpen} unmountOnExit={true} {...fadeProps}>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

unmountOnExitを入れることでもともと定義していたアニメーションが発火するようになる

<Modal isOpen={isOpen} onClose={onClose}>
<Fade in={isOpen}>
<Modal isOpen={isOpen} onClose={onClose} {...modalProps}>
<Fade in={isOpen} unmountOnExit={true} {...fadeProps}>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

fadePropsonExitedを用いるとアニメーション後のイベントが取れる

Copy link
Contributor

@maktak1995 maktak1995 left a comment

Choose a reason for hiding this comment

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

LGTMです!

@youchann youchann merged commit 5e4c88e into master Oct 9, 2020
@youchann youchann deleted the tweak-confirmModal branch October 9, 2020 07:34
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.

None yet

2 participants