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

fix: Dialog 開閉時にコンソールエラーが発生する問題を修正 #4778

Merged
merged 3 commits into from
Jul 16, 2024

Conversation

s-sasaki-0529
Copy link
Contributor

@s-sasaki-0529 s-sasaki-0529 commented Jul 12, 2024

Related URL

Overview

↑と同じ問題が Dialog コンポーネントでも起こっていたので同じ修正をする。
ついでに↑に対応漏れがあったのであわせて修正。

@s-sasaki-0529 s-sasaki-0529 self-assigned this Jul 12, 2024
@s-sasaki-0529 s-sasaki-0529 requested a review from a team as a code owner July 12, 2024 11:54
@s-sasaki-0529 s-sasaki-0529 requested review from moshisora and nabeliwo and removed request for a team July 12, 2024 11:54
@s-sasaki-0529 s-sasaki-0529 marked this pull request as draft July 12, 2024 11:55

return (
<Transition in={isInclude} timeout={150} nodeRef={nodeRef}>
<Transition in={isInclude} timeout={150} nodeRef={wrapperRef}>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

で nodeRef を使いましたが、このコンポーネントには既に wrapperRef があったのでそっちを使うように修正しました。

>
<div ref={nodeRef} className={styles}>
{isOpen ? children : childrenBuffer}
</div>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Dialog コンポーネントでも同様のエラーが発生していたのであわせて修正。
これで SmartHR UI 内の react-transition-group を使ってる箇所は全部になります。

@s-sasaki-0529 s-sasaki-0529 marked this pull request as ready for review July 12, 2024 12:07
Copy link
Member

@nabeliwo nabeliwo left a comment

Choose a reason for hiding this comment

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

これめっちゃ助かります!
感謝 🙏 ✨

@s-sasaki-0529 s-sasaki-0529 merged commit 8b5f3ae into master Jul 16, 2024
8 checks passed
@s-sasaki-0529 s-sasaki-0529 deleted the fix-dialog-error branch July 16, 2024 01:37
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