Skip to content

modal doesn't close on selecting data inside condition. see the below code #68

Open
@reenupanwar

Description

@reenupanwar
{(this.state.modeOfPermission == 'SPECIFIC') && 
                         (<ModalPicker
                            data={this.state.mailList}
                            initValue="Select mail id"
                            onChange={(option) => { this.setState({selectedMail: option.label }) }}>
                            <TextInput
                                style={{ borderWidth: 1, borderColor: '#ccc', padding: 10, height: 50, marginLeft: 10, marginRight: 10, backgroundColor: '#FFF' }}
                                editable={false}
                                placeholder="Select E-mail id .."
                                value={this.state.selectedMail} />
                        </ModalPicker>
                         )} 

without this.state.modeOfPermission == 'SPECIFIC' condition it is working properly

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