-
-
Notifications
You must be signed in to change notification settings - Fork 186
Allow individual isDraft in props to work #5043
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
|
@SeriousKen Thanks for the PR! However, when somebody is explicitly calling the method with a So I think we should change the parameter default to |
|
I've updated the PR to reflect the changes in priority of the |
|
@SeriousKen same here, if you could add unit tests that would be splendid. if that is out of your comfort zone, let us know :) |
|
I've added a test case that should cover this PR. |
Fix to allow individual isDraft to override the factory default if set in the array of props (issue #5041)
Change default for `$draft` to be null. If `$draft` is explicitly set then this overrides the individual `isDraft` prop, if neither are set it defaults to `false` (the original default value for `$draft`.
Co-authored-by: Ahmet Bora <[email protected]>
Fix to allow individual isDraft to override the factory default if set in the array of props (issue #5041)
This PR …
Fixes
Issue #5041
Breaking changes
None
Ready?
For review team