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

while opening with ref open() for first click #295

Open
sumitsunilrahate opened this issue Aug 28, 2024 · 1 comment
Open

while opening with ref open() for first click #295

sumitsunilrahate opened this issue Aug 28, 2024 · 1 comment

Comments

@sumitsunilrahate
Copy link

sumitsunilrahate commented Aug 28, 2024

when i try to open dropdown on first click it not opening the dropdown. i am using ref.open() method to open it. Can we add solution for this in latest version
Code-
const categoryRef = useRef();
<TouchableOpacity
onPress={() => {
categoryRef?.current?.open();
}}
style={styles.multipleDropdownStyle}>
<MultiSelect
ref={categoryRef}
placeholder={'Add job categories here'}
placeholderStyle={styles.placeholderStyle}
data={specialityData}
labelField={'name'}
valueField={'name'}
value={selectedJob}
renderRightIcon={() => {
return ;
}}
onChange={val => setSelectedJob(val)}
selectedStyle={styles.multiSelected}
selectedTextStyle={styles.multiSelectedTxt}
search={true}
alwaysRenderSelectedItem={true}
searchPlaceholder={'Search'}/>

@joumanam
Copy link

were u able to solve it? same is happening with me

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

2 participants