From c4c9222f0c854997edec58b30f1ca9cc7701842a Mon Sep 17 00:00:00 2001 From: Dominik Nahr Date: Fri, 3 Nov 2023 19:32:20 +0100 Subject: [PATCH] fix(mui): Correctly use onBlur and onFocus for MUIDatePicker and MUITimepicker --- packages/mui-component-mapper/src/date-picker/date-picker.js | 2 ++ packages/mui-component-mapper/src/time-picker/time-picker.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/packages/mui-component-mapper/src/date-picker/date-picker.js b/packages/mui-component-mapper/src/date-picker/date-picker.js index 4a890d5e1..560a0a8d4 100644 --- a/packages/mui-component-mapper/src/date-picker/date-picker.js +++ b/packages/mui-component-mapper/src/date-picker/date-picker.js @@ -38,6 +38,8 @@ const DatePicker = (props) => { placeholder, required: isRequired, error: !!invalid, + onBlur: input.onBlur, + onFocus: input.onFocus, }, }} // legacy version diff --git a/packages/mui-component-mapper/src/time-picker/time-picker.js b/packages/mui-component-mapper/src/time-picker/time-picker.js index de6763a2d..84de33416 100644 --- a/packages/mui-component-mapper/src/time-picker/time-picker.js +++ b/packages/mui-component-mapper/src/time-picker/time-picker.js @@ -38,6 +38,8 @@ const TimePicker = (props) => { placeholder, required: isRequired, error: !!invalid, + onBlur: input.onBlur, + onFocus: input.onFocus, }, }} // legacy version