Skip to content
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.

Typescript type issues, for input fields #91

Open
andreimc opened this issue Aug 4, 2019 · 0 comments
Open

Typescript type issues, for input fields #91

andreimc opened this issue Aug 4, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@andreimc
Copy link

andreimc commented Aug 4, 2019

Switch can be bool as well??

index.js:1375 Warning: Failed prop type: Invalid prop `value` of type `boolean` supplied to `Switch`, expected `string`.

Input type number ?!

eg:
<Field component={InputField.Formik} name="number" type="number" label="Number" />

index.js:1375 Warning: Failed prop type: Invalid prop `value` of type `number` supplied to `Input`, expected `string`.

Full logs:

index.js:1375 Warning: Failed prop type: Invalid prop `value` of type `number` supplied to `InputField`, expected `string`.
    in InputField
    in Unknown (created by FieldInner)
    in FieldInner (created by Context.Consumer)
    in FormikConnect(FieldInner) (at EditVenue.tsx:193)
    in form
    in Unknown (created by Context.Consumer)
    in Form (at EditVenue.tsx:189)
    in Formik (at EditVenue.tsx:188)
    in div (created by ForwardRef)
    in ForwardRef (created by Context.Consumer)
    in StyledComponent (created by Styled(Component))
    in Styled(Component) (created by ForwardRef)
    in ForwardRef (created by Context.Consumer)
    in StyledComponent (created by styled__Container)
    in styled__Container (created by Container)
    in Container (at EditVenue.tsx:184)
    in div (created by ForwardRef)
    in ForwardRef (created by Context.Consumer)
    in StyledComponent (created by Styled(Component))
    in Styled(Component) (created by ForwardRef)
    in ForwardRef (created by HiddenComponent)
    in HiddenComponent (created by ForwardRef)
    in ForwardRef (created by Context.Consumer)
    in StyledComponent (created by Styled(Component))
    in Styled(Component) (created by ForwardRef)
    in ForwardRef (created by TabsPanelComponent)
    in TabsPanelComponent (created by ForwardRef)
    in ForwardRef (created by Context.Consumer)
    in StyledComponent (created by Styled(Component))
    in Styled(Component) (created by ForwardRef)
    in ForwardRef (created by Context.Consumer)
    in StyledComponent (created by styled__TabPanel)
    in styled__TabPanel (created by TabPanel)
    in TabPanel (at EditVenue.tsx:182)
    in InnerContainer (created by Container)
    in Container (created by StepContainer)
    in StepContainer (created by TabsContainer)
    in TabsContainer (at EditVenue.tsx:90)
    in div (at AuthenticatedLayout.tsx:14)
    in AuthenticatedLayout (at EditVenue.tsx:89)
    in EditVenue (at ProtectedRoute.tsx:25)
    in ProtectedRoute (at App.tsx:55)
    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 (at App.tsx:49)
    in IdProvider (created by Provider)
    in Provider (created by Provider)
    in ThemeProvider (created by Provider$$1)
    in Provider (created by Provider$$1)
    in Provider$$1 (created by Provider)
    in Provider (at App.tsx:48)
    in HelmetProvider (at App.tsx:47)
    in ApolloProvider (at App.tsx:46)
    in ApolloProvider (at App.tsx:45)
    in AppProvider (at App.tsx:44)
    in ErrorBoundary (at App.tsx:43)
    in App (at src/index.tsx:6)
@jxom jxom added the bug Something isn't working label Aug 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants