joeattardi / picmo

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

recentsCount doesn't apply #187

Closed jicihome closed 2 years ago

jicihome commented 2 years ago

It's all in the title. Recents count is set to 8 but show a lot more.

jicihome commented 2 years ago

Nevermind. Seem that if you change it while you was testing before and doesn't select a new emoji, the list stay on the previous #. As soon as you select a new one, it get updated to the limit

joeattardi commented 2 years ago

I think this is still a valid issue! If the maxRecents has changed and there are too many recents stored, it can truncate them to meet the new limit.

I'll make sure to include this in the v5 release! Reopening to track it.