-
Notifications
You must be signed in to change notification settings - Fork 317
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
amitha/feature/dialog-is-reference-hidden #322
Conversation
return ( | ||
<DialogContent | ||
isReferenceHidden={hideWhenReferenceHidden && isReferenceHidden} |
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.
maybe send isReferenceHidden as is
and also pass the other prop (hideWhenReferenceHidden) to the dialogContent component?
@@ -346,12 +348,19 @@ export default class Dialog extends PureComponent { | |||
...modifiers | |||
]} | |||
> | |||
{({ placement, style, ref, arrowProps }) => { | |||
{({ placement, style, ref, arrowProps, isReferenceHidden }) => { |
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.
@orrgottlieb are we ok with sending new objects/arrays every time to the popper component?
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.
it is the render props methodology, it is a render function. isReferenceHidden is a boolean @MosheZemah
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.
I meant the code above that line (that wasn't changed)
Hide dialog when reference is hidden
Updating existing component
Basic
Style
Storybook
Tests