-
-
Notifications
You must be signed in to change notification settings - Fork 245
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
Remove autoField prop from QuickForm and AutoForm #1166
Conversation
Codecov Report
@@ Coverage Diff @@
## v4 #1166 +/- ##
=====================================
Coverage ? 98.48%
=====================================
Files ? 228
Lines ? 3635
Branches ? 939
=====================================
Hits ? 3580
Misses ? 4
Partials ? 51 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
@@ -87,25 +87,6 @@ describe('AutoForm', () => { | |||
}); | |||
|
|||
describe('when rendered', () => { | |||
it('calls `onChange` before render', () => { |
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.
Would be best to somehow keep these tests since they are unrelated to the autoField
prop but I don't really have an idea on how to rewrite it other than move it to a theme instead which I don't think is a good place for it. Any ideas appreciated.
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.
Using AutoField.componentDetectorContext.Provider
to return the Field
component created here would be enough.
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.
But AutoField
s are also theme-specific. Can I somehow use the context provider without having one in the base package or did I misunderstand something?
1fff8cb
to
6a96f71
Compare
In this PR the
autoField
prop is removed fromQuickForm
andAutoForm
.Closes #980.
Edit: reopened in #1180