diff --git a/src/components/forms/SearchInput.tsx b/src/components/forms/SearchInput.tsx index b0083104ca..22a6839705 100644 --- a/src/components/forms/SearchInput.tsx +++ b/src/components/forms/SearchInput.tsx @@ -18,7 +18,10 @@ type SearchInputProps = Omit & { } export const SearchInput = React.forwardRef( - function SearchInput({label, onChangeText: onChangeTextProp, ...rest}, ref) { + function SearchInput( + {label, onChangeText: onChangeTextProp, onClearText, ...rest}, + ref, + ) { const t = useTheme() const {_} = useLingui() const [showClear, setShowClear] = useState(false) @@ -33,6 +36,7 @@ export const SearchInput = React.forwardRef( inputRef.current?.clear() setShowClear(false) onChangeTextProp?.('') + onClearText?.() } return (