Auto-focus emoji picker search input

This commit is contained in:
Volpeon
2025-08-03 12:35:24 +02:00
committed by nicole mikołajczyk
parent 545a942d51
commit 365d772e7a

View File

@ -13,7 +13,7 @@ const Picker: React.FC<any> = (props) => {
const ref = useRef(null); const ref = useRef(null);
useEffect(() => { useEffect(() => {
const input = { ...props, data, ref, getImageURL, getSpritesheetURL }; const input = { ...props, data, ref, autoFocus: true, getImageURL, getSpritesheetURL };
new EmojiPicker(input); new EmojiPicker(input);
}, []); }, []);