Skip to content

Commit 208c9a2

Browse files
authored
Merge pull request #1419 from DNahr/mui-date-and-time-picker
fix(mui): Correctly use onBlur and onFocus for MUIDatePicker and MUITimePicker
2 parents 00ae09a + c4c9222 commit 208c9a2

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)