Skip to content
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

Warning: Invalid prop controlComponent of type object supplied to ControlField when using FormikSwitchField #4

Closed
skhaz opened this issue Jun 20, 2019 · 2 comments

Comments

@skhaz
Copy link

skhaz commented Jun 20, 2019

I got this warning[1] when using FormikSwitchField

1 -

Warning: Failed prop type: Invalid prop `controlComponent` of type `object` supplied to `ControlField`, expected `function`.
    in ControlField (created by WithStyles(ControlField))
    in WithStyles(ControlField) (created by FieldInner)
    in FieldInner (created by Context.Consumer)
    in FormikConnect(FieldInner) (created by FormikSwitchField)
    in FormikSwitchField (at form.js:58)
    in PlaceEntry (at form.js:78)
    in div (created by ForwardRef(Paper))
    in ForwardRef(Paper) (created by WithStyles(ForwardRef(Paper)))
    in WithStyles(ForwardRef(Paper)) (at form.js:25)
    in Wrapper (at form.js:77)
    in FieldArrayInner (created by Context.Consumer)
    in FormikConnect(FieldArrayInner) (at form.js:73)
    in form
    in Unknown (created by Context.Consumer)
    in Form (at form.js:72)
    in PlaceArray (at form.js:138)
    in Formik (at form.js:133)
    in div (at form.js:15)
    in Root (at form.js:131)
    in _default (created by _default)
    in _default (created by _default)
    in ThemeProvider (created by _default)
    in _default (created by HotExported_default)
    in AppContainer (created by HotExported_default)
    in HotExported_default (created by PageRenderer)
    in PageRenderer (created by JSONStore)
    in JSONStore (created by EnsureResources)
    in ScrollContext (created by EnsureResources)
    in RouteUpdates (created by EnsureResources)
    in EnsureResources (created by RouteHandler)
    in RouteHandler (created by Root)
    in div (created by FocusHandlerImpl)
    in FocusHandlerImpl (created by Context.Consumer)
    in FocusHandler (created by RouterImpl)
    in RouterImpl (created by LocationProvider)
    in LocationProvider (created by Context.Consumer)
    in Location (created by Context.Consumer)
    in Router (created by Root)
    in Root
    in _default
daixianceng added a commit that referenced this issue Jun 21, 2019
@daixianceng
Copy link
Owner

fixed

@skhaz
Copy link
Author

skhaz commented Jun 21, 2019

Thanks! Your project is awesome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants