-
Notifications
You must be signed in to change notification settings - Fork 734
Infra/picker expandable overlay #1632
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
Conversation
… for Picker at the moment)
topBarProps, | ||
renderCustomOverlay, | ||
...others | ||
} = props; | ||
const [expandableVisible, setExpandableVisible] = useState(false); | ||
const showExpandable = useCallback(() => setExpandableVisible(true), []); | ||
const hideExpandable = useCallback(() => setExpandableVisible(false), []); |
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.
We need to invoke the Modal/Dialog's 'onDismiss' in 'hideExpandable' so the user can pass a callback.
And maybe Modal's 'onShow' in 'showExpandable'
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.
Fixed
Description
Please review but don't merge !!!
This refactor in Picker component purpose is to stop using old TextField expandable API (what controls the picker modal show/hide) and instead use our new ExpandableOverlay component that is dedicated solely for that
This PR has few goals
Few notes
Changelog
Refactor Picker component internally using Incubator.ExpandableOverlay for handling the Picker modal