diff --git a/public/app/core/components/FilterInput/FilterInput.tsx b/public/app/core/components/FilterInput/FilterInput.tsx index 097f75e81f4..b155da7dd9e 100644 --- a/public/app/core/components/FilterInput/FilterInput.tsx +++ b/public/app/core/components/FilterInput/FilterInput.tsx @@ -7,10 +7,11 @@ export interface Props { placeholder?: string; width?: number; onChange: (value: string) => void; + onKeyDown?: (event: React.KeyboardEvent) => void; autoFocus?: boolean; } -export const FilterInput: FC = ({ value, placeholder, width, onChange, autoFocus }) => { +export const FilterInput: FC = ({ value, placeholder, width, onChange, onKeyDown, autoFocus }) => { const suffix = value !== '' ? (