emoji-picker-react 4.0.0-rc.4 → 4.0.0-rc.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/emoji-picker-react.cjs.development.js +4 -2
- package/dist/emoji-picker-react.cjs.development.js.map +1 -1
- package/dist/emoji-picker-react.cjs.production.min.js +1 -1
- package/dist/emoji-picker-react.cjs.production.min.js.map +1 -1
- package/dist/emoji-picker-react.esm.js +4 -2
- package/dist/emoji-picker-react.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/dataUtils/recentlyUsed.ts +8 -5
|
@@ -6471,9 +6471,11 @@ function setRecentlyUsed(emoji, skinTone) {
|
|
|
6471
6471
|
nextList.length = Math.min(nextList.length, 14);
|
|
6472
6472
|
|
|
6473
6473
|
try {
|
|
6474
|
-
|
|
6474
|
+
setTimeout(function () {
|
|
6475
|
+
var _window3;
|
|
6475
6476
|
|
|
6476
|
-
|
|
6477
|
+
(_window3 = window) == null ? void 0 : _window3.localStorage.setItem(RECENTLY_USED_LS_KEY, JSON.stringify(nextList)); // Prevents the change from being seen immediately.
|
|
6478
|
+
}, 10);
|
|
6477
6479
|
} catch (_unused2) {// ignore
|
|
6478
6480
|
}
|
|
6479
6481
|
}
|