joeattardi / picmo

JavaScript emoji picker. Any app, any framework.
https://picmojs.com
MIT License
1.19k stars 118 forks source link

Search bug when using the in-memory store #261

Closed dEEpProjects closed 1 year ago

dEEpProjects commented 1 year ago

In some environments, due to security issues, I need to use the in-memory store.

If I try to search for an emoji newer than the supported emoji version on the platform, the search container shows it with a squared placeholder.

In this case, I think that the search should only include platform-supported emojis.

I created a simple jsfiddle that shows the issue.

Please try to search for "troll" on a browser that doesn't support emoji 14. I've used Chrome 109 on Big Sur.

search bug

It doesn't happen when I use the IndexedDB store.

Thanks.

joeattardi commented 1 year ago

The in-memory store was missing the version check in the search function, oops. Should be all set now, fixed in 5.7.6.

Really appreciate you reporting these issues!