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

Emojis in Popups Rendering Incorrectly in Chrome (v4) - Potential Browser Compatibility Issue #1153

Open
MatinT-SA opened this issue Jan 27, 2025 · 0 comments

Comments

@MatinT-SA
Copy link

I am experiencing an issue with rendering emoji flags inside popups using React-Leaflet v4.x in Chrome. When using country flag emojis (e.g., 🇮🇷, 🇨🇭), the emojis are displayed as text instead of being rendered as actual flag images. This issue does not occur in other browsers like Firefox, but it consistently happens in Chrome.

To clarify:

  • Using country code emojis directly in the popup content results in them showing up as characters (e.g., 🇮🇷) but not as flags.
  • Other content (text) inside the popup is displayed correctly, but the flags are not rendered properly.
  • I'm using a Chrome extension called Country Flag Fixer, which fixed the issue for emojis in the rest of my app. However, I’m still encountering the same problem specifically in the Leaflet Popup component.

I believe this might be a Chrome-specific issue related to how it handles emoji rendering or a problem with how React-Leaflet handles emoji content in popups. Any guidance or a potential fix would be greatly appreciated!

Image

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