Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reset dropdown to placeholder #233

Open
TGod-Ajayi opened this issue Jan 2, 2020 · 2 comments
Open

reset dropdown to placeholder #233

TGod-Ajayi opened this issue Jan 2, 2020 · 2 comments

Comments

@TGod-Ajayi
Copy link

I have 2 dropdowns and I want it when i select one the other changes to the placeholder and vice-versa `
<ModalDropdown
textStyle={styles.modalText}
options={templatenew}

                                    defaultValue={modalButtonB}
                                    onSelect = {(index, value) => { setModalVal(value), setModalButtonB('Please Select') } }
                               
                                    />
                                </Dropdown>
                                <Dropdown>
                                    <ModalDropdown  
                                    textStyle={styles.modalText} 
                                    options={templatenew}
         
                                    defaultValue={modalButtonB}
                                    
                                    onSelect = {(index, value) => { setModalVal(value), setModalButtonB('Please Select') } }
                                
                                    />
                                </Dropdown>`
@LeQuy-123
Copy link

dropdownRef.current.select(-1)
it in the doc

@usmanhaiderr
Copy link

dropdownRef.current.select(-1) it in the doc

This is not working as it is giving error Cannot read property 'select' of undefined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants