diff --git a/src/components/compose.jsx b/src/components/compose.jsx index 6506d73..4508c0a 100644 --- a/src/components/compose.jsx +++ b/src/components/compose.jsx @@ -2374,6 +2374,10 @@ function GIFPickerModal({ onClose = () => {}, onSelect = () => {} }) { qRef.current?.focus(); }, []); + const debouncedOnInput = useDebouncedCallback(() => { + fetchGIFs({ offset: 0 }); + }, 1000); + return (
{!!onClose && ( @@ -2400,6 +2404,7 @@ function GIFPickerModal({ onClose = () => {}, onSelect = () => {} }) { autocapitalize="off" spellCheck="false" dir="auto" + onInput={debouncedOnInput} />