Skip to content

Commit c4c9222

Browse files
committed
fix(mui): Correctly use onBlur and onFocus for MUIDatePicker and MUITimepicker
1 parent 00ae09a commit c4c9222

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/mui-component-mapper/src/date-picker/date-picker.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ const DatePicker = (props) => {
3838
placeholder,
3939
required: isRequired,
4040
error: !!invalid,
41+
onBlur: input.onBlur,
42+
onFocus: input.onFocus,
4143
},
4244
}}
4345
// legacy version

packages/mui-component-mapper/src/time-picker/time-picker.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ const TimePicker = (props) => {
3838
placeholder,
3939
required: isRequired,
4040
error: !!invalid,
41+
onBlur: input.onBlur,
42+
onFocus: input.onFocus,
4143
},
4244
}}
4345
// legacy version

0 commit comments

Comments
 (0)