I have an OverlayTrigger package that contains some form inserts, and a Button for saving data and closing.
save(e) { this.setState({ editing: false }) this.props.handleUpdate(e); } render() { return ( <OverlayTrigger trigger="click" rootClose={true} onExit={this.save.bind(this) } show={this.state.editing} overlay={ <Popover title="Time Entry"> <FormGroup> <ControlLabel>Data: </ControlLabel> <FormControl type={'number'}/> </FormGroup> <Button onClick={this.save.bind(this) }>Save</Button> </Popover> }>
I have rootClose = true and my callback is executed onExit , but I see no way to manually close the overlay. I am trying to use the show attribute from Bootstrap Modal , which (as expected) does not work.
twitter-bootstrap reactjs react-bootstrap
Todd chambery
source share