diff --git a/src/core_modules/capture-core/components/FiltersForTypes/Date/From.component.js b/src/core_modules/capture-core/components/FiltersForTypes/Date/From.component.js index ff8cce189b..b43b56a245 100644 --- a/src/core_modules/capture-core/components/FiltersForTypes/Date/From.component.js +++ b/src/core_modules/capture-core/components/FiltersForTypes/Date/From.component.js @@ -29,7 +29,7 @@ class FromDateFilterPlain extends Component { this.props.onBlur(FromDateFilterPlain.getValueObject(value)); } - handleKeyPress = (event: SyntheticKeyboardEvent) => { + handleKeyDown = (event: SyntheticKeyboardEvent) => { if (event.key === 'Enter') { this.props.onEnterKey(); } @@ -41,7 +41,7 @@ class FromDateFilterPlain extends Component {
{/* $FlowFixMe[cannot-spread-inexact] automated comment */} { this.props.onBlur(ToDateFilterPlain.getValueObject(value)); } - handleKeyPress = (event: SyntheticKeyboardEvent) => { + handleKeyDown = (event: SyntheticKeyboardEvent) => { if (event.key === 'Enter') { this.props.onEnterKey(ToDateFilterPlain.getValueObject(this.props.value || '')); } @@ -48,7 +48,7 @@ class ToDateFilterPlain extends Component {
{/* $FlowFixMe[cannot-spread-inexact] automated comment */} void, onFocus?: ?() => void, + onKeyDown?: ?() => void, onDateSelectedFromCalendar?: () => void, classes?: Object, disabled?: boolean,