Dropdown list mode "Modal" can't select item
See original GitHub issue <DropDownPicker
open={isCountryOpen}
listMode="MODAL"
placeholder=""
searchable={true}
items={countryList}
value={country}
itemKey="value"
containerStyle={{ height: 40 }}
textStyle={{ fontSize: 20 }}
style={{ borderRadius: 0, borderWidth: 0, borderBottomWidth: 1, borderBottomColor: '#cad4db' }}
setOpen={() => this.setState({ isCountryOpen: true })}
onClose={() => this.setState({ isCountryOpen: false })}
setValue={(callback) => this.setState(state => ({ country: callback(state.country) }))}
onChangeValue={(country) => this.onChangeCountry(country)}
/>
I have upgraded to v5.1.17 and got this issue. When I change the listMode to “Flatlist” or “Default”, I can select the item, but with “Modal”, I cant select item.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Cannot interact with dropdown within Bootstrap modal #600
When I built the jsfiddle to show you, it did get focus and I was allowed to type, but it did not search...
Read more >You cannot select a drop-down list in a modal dialog box in ...
When you try to select an option from a drop-down list in a modal dialog box, the options are not displayed as expected....
Read more >Select2 doesn't work when embedded in a bootstrap modal
By default Select2 attaches the dropdown menu to the element and it is considered "outside of the modal". Instead attach the dropdown to...
Read more >Dropdown is not reachable when element is rendered in modal
Another issue is that when the select2 JS attach behavior runs, the jQuery dialog is not a selectable element with $('.ui-modal') when trying...
Read more >Common problems - The jQuery replacement for select boxes
Since by default, Select2 attaches the dropdown menu to the <body> element, it is considered "outside of the modal".
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@FashionCStar @andraantariksa Please install v5.1.19.
I used v5.1.19,ios work properly,but android it’s not work properly…