Skip to content

Commit

Permalink
Merge pull request #1419 from DNahr/mui-date-and-time-picker
Browse files Browse the repository at this point in the history
fix(mui): Correctly use onBlur and onFocus for MUIDatePicker and MUITimePicker
  • Loading branch information
rvsia authored Nov 6, 2023
2 parents 00ae09a + c4c9222 commit 208c9a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/mui-component-mapper/src/date-picker/date-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ const DatePicker = (props) => {
placeholder,
required: isRequired,
error: !!invalid,
onBlur: input.onBlur,
onFocus: input.onFocus,
},
}}
// legacy version
Expand Down
2 changes: 2 additions & 0 deletions packages/mui-component-mapper/src/time-picker/time-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ const TimePicker = (props) => {
placeholder,
required: isRequired,
error: !!invalid,
onBlur: input.onBlur,
onFocus: input.onFocus,
},
}}
// legacy version
Expand Down

1 comment on commit 208c9a2

@vercel
Copy link

@vercel vercel bot commented on 208c9a2 Nov 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.