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.

[Android] disabled props make dropdownlist go under other components

See original GitHub issue
<DropDownPicker
        open={kindOpen}
        setOpen={setKindOpen}
        onOpen={onKindOpen}
        // disabled={disabled}
        value={selectedKind}
        items={kindOptions}
        style={[disabled && bdac, la]}
        containerStyle={p20}
        dropDownContainerStyle={[m20, la]}
        labelStyle={disabled ? dc : blc}
        listItemContainerStyle={fljfs}
        setValue={handleSetStatus}
        searchable={false}
        zIndex={5000}
        zIndexInverse={6000}
      />

Disabled props make dropdownlist go under other components. Disabled default value is true when user enters screen. When user clicks edit button disable value changes to false. On iOS it works as expected but on Android it doesn’t. When I comment out disabled it works as expected in Android.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
Jumpiscommented, May 20, 2021

@Jumpis Are you still facing the same bug?!

Nope! After the update, it works as expected. @codoffer @Mdelacruzmelo plz check if there are any border related styles in parent elements. If you keep the rule it may work as expected.

1reaction
hossein-zarecommented, May 14, 2021

Thanks for the PR.

I released v5.1.15.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Android] disabled props make dropdownlist go under other ...
Disabled props make dropdownlist go under other components. Disabled default value is true when user enters screen. When user clicks edit button disable...
Read more >
Not able to select item from list that overlaps different view #40
Describe the bug Could not select an item from the dropdown list. To Reproduce Render separate view under dropdown Screenshots Code.
Read more >
how to disable dropdown option, if the data from another ...
I know how to make disable if the option we write on the same component, but how do we make it if the...
Read more >
react-native-dropdown-select-list - npm
Light weight and Easy to use dropdown select list. Style it your way with style props of every view. Smooth performance on all...
Read more >
How to use react-native-picker-select - LogRocket Blog
Updating state with useState and the items and onValueChange props. We can set a component's state with the selected data, as shown in...
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