Skip to content
This repository was archived by the owner on Sep 13, 2020. It is now read-only.
This repository was archived by the owner on Sep 13, 2020. It is now read-only.

Can't close after setState from onChange #357

Open

Description

@dzpt

I don't know why, but after i put setState inside onChange callback, it couldn't close anymore.

Here is the code:

<SideMenu isOpen={this.state.peakOpened} openMenuOffset={layout.peakWidth} menu={this.state.peak} style={pstyle.peak} menuPosition='right' onChange={isOpen => this.changePeak(isOpen)} disableGestures={false}>

changePeak(isOpen) { this.setState({}) }

Activity

  1. changed the title [-]Can't close after change state on `onChange`[/-] [+]Can't close after setState from onChange[/+] on Aug 1, 2018
  2. odarino commented on Aug 27, 2019

    @odarino

    I faced the same issue, any update for this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions