Warning with react list item checkbox


#1

This rendering code:

   render() {
    let list_items = [
        <ListItem
            key="li__0"
            className="select-all"
            checkbox
            checked={this.state.allSelected}
            onChange={this.selectAll.bind(this)}
            name="select_all"
            title="Select all"
        ></ListItem>
    ]

    return (
        <Page onPageAfterIn={this.onPageAfterIn.bind(this)}>
            <Navbar inner sliding backLink="Back" title="Create & Link">
                <NavRight class="right">
                    <Link onClick={this.save.bind(this)}><Icon material="save"></Icon></Link>
                </NavRight>
            </Navbar>
            <PageContent>
                <BlockTitle>Create activity with the matched entities attached</BlockTitle>
                <List>
                    {list_items}
                </List>
            </PageContent>
        </Page>
    );
  }

… produces the following warning:

Warning: Failed prop type: You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field.

Obviously , I have onChange handler. If I don’t care about the warning, the code is working also.


#2

See the issue. Will be fixed in next update


#3

“See the issue”? To what issue are you referring to?


#4

Issue in F7 casting this error message


#5

Sorry, misunderstood, thought you were referring to an existing github issue, which I could not find.