Skip to content

How to use position absolute correctly #15

Description

@subspacefield-or

Thanks for this great library. I have a question about using position:absolute or maybe I should not be using it. I have multiple collapsible views that each contain a list of cards and one of the cards has a spinner (react-native-picker/picker).

I was having a problem with the collapsible view closing when you changed a value in the spinner. I tried using zIndex but that did not solve it. In the docs there is an example of using position:absolute which solved the issue but caused another one. If I have to use positive:absolute can still have it expand with its children instead of opening like a dropdown? Or is there a different way to solve the issue with the input for the spinner also being handled by the collapsible view?

I created a snack that shows the issue: https://snack.expo.dev/@subspacefield/collapsibleview. Appreciate any tips on solving this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions