Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Popup flickers when closed #1093

Open
dannybucks opened this issue Sep 8, 2023 · 0 comments
Open

Popup flickers when closed #1093

dannybucks opened this issue Sep 8, 2023 · 0 comments

Comments

@dannybucks
Copy link

dannybucks commented Sep 8, 2023

Bug report in v4.0.2

Expected behavior

Popup closes smoothly when closed with close button or by clicking on map.

Actual behavior

Popup closes, however, it flickers / shows an empty popup for a split second.

Steps to reproduce

I did the same thing as in this answer: stackoverflow
The answer contains a working example: jsfiddle The example uses an older version of react, we use react 18.2.0. However, the problem stays the same: you see the empty popup frame for a split second when closing the popup with the close button ("X")

The example in the docs wraps the Popup within a Marker. I tried that in the jsfiddle, the popup still flickers when closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant