question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
hossein-zarecommented, May 25, 2021

@FashionCStar @andraantariksa Please install v5.1.19.

2reactions
tomzhou87commented, May 28, 2021

@hossein-zare , v5.1.19 work properly…

Thanks

I used v5.1.19,ios work properly,but android it’s not work properly…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found