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

TextField receives warning for non-boolean attribute type #30

Open
wickedest opened this issue Apr 1, 2018 · 0 comments
Open

TextField receives warning for non-boolean attribute type #30

wickedest opened this issue Apr 1, 2018 · 0 comments

Comments

@wickedest
Copy link

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
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

1 participant