Skip to content

Commit b24743d

Browse files
authored
fix: make invalid handler required and define in all consumers (#3527)
1 parent e2a7583 commit b24743d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/shared/components/dateRangePicker/DatePicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ interface Props {
3636
maxDate?: string
3737
minDate?: string
3838
onSelectDate: (date: string) => void
39-
onInvalidInput?: () => void
39+
onInvalidInput: () => void
4040
}
4141

4242
interface State {

src/visualization/components/internal/TimeTickInput.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ interface TimeTickInputProps {
4343
update: (data: any) => void
4444
}
4545

46+
const noOp = () => {}
47+
4648
export const TimeTickInput: FC<TimeTickInputProps> = props => {
4749
const {
4850
axisName,
@@ -198,6 +200,7 @@ export const TimeTickInput: FC<TimeTickInputProps> = props => {
198200
dateTime={getDatePickerDateTime()}
199201
onSelectDate={handleSelectDate}
200202
label="Start Tick Marks At"
203+
onInvalidInput={noOp}
201204
/>
202205
</div>
203206
<Button

0 commit comments

Comments
 (0)