-
Notifications
You must be signed in to change notification settings - Fork 141
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
Conversation
|
||
return ( | ||
<Transition in={isInclude} timeout={150} nodeRef={nodeRef}> | ||
<Transition in={isInclude} timeout={150} nodeRef={wrapperRef}> |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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
を使ってる箇所は全部になります。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これめっちゃ助かります!
感謝 🙏 ✨
Related URL
Overview
↑と同じ問題が Dialog コンポーネントでも起こっていたので同じ修正をする。
ついでに↑に対応漏れがあったのであわせて修正。