hoaphantn7604 / react-native-element-dropdown

A react-native dropdown component easy to customize for both iOS and Android.
MIT License
959 stars 167 forks source link

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

Open sumitsunilrahate opened 1 month ago

sumitsunilrahate commented 1 month ago

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 commented 2 weeks ago

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