-
Notifications
You must be signed in to change notification settings - Fork 929
fix(useOverlay): use original props when not provided to open
#4269
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
commit: |
openopen
openopen
|
@benjamincanac @genu, Now I'm getting error and unable to use useOverlay(). It works fine with public v3. |
|
@Shedevro is that issue related specifically to this PR? In my testing, I'm not able to reproduce the issue. Do you mind opening up a issue with a reproduction? |
|
@genu |
|
@Shedevro Can you verify if the issue is fixed in above PR? |
|
@genu it works now, thank you. |
β Type of change
π Description
This PR improves the way
propsare handled. Since props can be set oncreateand onopen, I believe the expectation is that when props are not passed toopen, then the ones passed tocreateare used. Furthermore, when passing props toopenit should not override the original props that were passed tocreate, they should only be applied for that instance.Take this example:
When creating an overlay like so:
If we open in this order:
The expected behavior is that when calling
open()without props, it would always default to using the props that were set at creation.π Checklist