tuckerconnelly / carbon-ui

React Native Material Design library for all platforms
MIT License
209 stars 17 forks source link

TextField receives warning for non-boolean attribute `type` #30

Open wickedest opened 6 years ago

wickedest commented 6 years ago

Warning: Received false for a non-boolean attribute type. Tracked it down to this: https://github.com/tuckerconnelly/carbon-ui/blob/master/src/components/TextField.js#L180

Warning: Received `false` for a non-boolean attribute `type`.

If you want to write it to the DOM, pass a string instead: type="false" or type={value.toString()}.

If you used to conditionally omit it with type={condition && value}, pass type={condition ? value : undefined} instead.
    in div (created by View)
    in View (created by WrappedComponent)
    in WrappedComponent (created by ConnectTheme(Component))
    in ConnectTheme(Component) (created by AnimatedComponent)
    in AnimatedComponent (created by Uranium(TextField))
    in div (created by View)
    in View (created by Uranium(TextField))
    in Uranium(TextField) (created by ConnectTheme(Component))
    in ConnectTheme(Component) (at CreateEvent.js:37)
    in div (created by View)
    in View (at CreateEvent.js:31)
    in CreateEvent (created by ConnectTheme(Component))
    in ConnectTheme(Component) (at Event.js:22)
    in Event (created by Connect(Event))
    in Connect(Event) (at App.js:17)
    in div (created by View)
    in View (at App.js:15)
    in ComposedComponent (at createOrchestrator.js:97)
    in Orchestrator(Component) (at index.js:31)
    in ThemeProvider (at index.js:30)
    in Provider (at index.js:29)
    in AppWithStyles
    in div (created by View)
    in View (created by AppContainer)
    in div (created by View)
    in View (created by AppContainer)
    in AppContainer