Skip to content

Commit

Permalink
[Filters] Add onQueryFocused callback
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuajay committed Aug 9, 2019
1 parent 795f5ff commit beb1936
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/Filters/Filters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ export interface Props {
onClearAll(): void;
/** Callback when the query field is blurred */
onQueryBlur?(): void;
/** Callback when the query field is focused */
onQueryFocus?(): void;
/** The content to display inline with the controls */
children?: React.ReactNode;
}
Expand Down Expand Up @@ -133,6 +135,7 @@ class Filters extends React.Component<ComposedProps, State> {
queryValue,
onQueryBlur,
onQueryChange,
onQueryFocus,
focused,
onClearAll,
appliedFilters,
Expand Down Expand Up @@ -236,6 +239,7 @@ class Filters extends React.Component<ComposedProps, State> {
}
onChange={onQueryChange}
onBlur={onQueryBlur}
onFocus={onQueryFocus}
value={queryValue}
focused={focused}
label={
Expand Down

0 comments on commit beb1936

Please sign in to comment.