Auto-focus emoji picker search input
This commit is contained in:
committed by
nicole mikołajczyk
parent
545a942d51
commit
365d772e7a
@ -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);
|
||||||
}, []);
|
}, []);
|
||||||
|
|||||||
Reference in New Issue
Block a user