Skip to content

uncontrolled warning on console #77

Closed
@mikdatdogru

Description

@mikdatdogru

i can use react 16.2.0

All versions above 1.3.0 have the following warning to console; (1.4.0, 1.5.0, 1,6,0, 1,6,1 ... 1.7.0)

When choosing item from Dropdown options

index.js:2178 Warning: A component is changing an uncontrolled input of type checkbox to be controlled. Input elements should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://fb.me/react-controlled-components
in input (created by c)
in label (created by c)
in c (created by C)
in li (created by C)
in C (created by l)
in ul (created by l)
in l (created by t)
in div (created by t)
in div (created by t)
in div (created by t)
in t (at App.js:43)
in div (at App.js:38)
in App (at index.js:7)

clicking outside and closing the dropdown

Warning: An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions