Skip to content

First render modal is not visible #128

@bglowney

Description

@bglowney

Hello,

Thank you for your work on this project. I am reporting an issue I found

version: 2.3.5
platform: Android

On the initial render of the CountryPicker when setting show to true the country picker is not visible. If, in the app, the user navigates elsewhere an then back to the screen where the CountryPicker is used, then setting show to true again the picker is visible as expected.

My workaround is to wrap the CountryPicker in another component and quickly show and hide it initially with useEffect and a brief timeout with the display style set to 'none'. This workaround is satisfactory as the effect is not seen by the user, but I wanted to see if anyone else saw this issue. Perhaps there is a side effect on the first render that is causing the modal to not be visible until show is toggled a second time ?

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