Skip to content

Commit

Permalink
Altering prop order of DateTimePicker's TimeInput
Browse files Browse the repository at this point in the history
  • Loading branch information
rodda-kyusu committed May 8, 2024
1 parent 44c3ffd commit 4a81bf0
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,13 +248,6 @@ export const DateTimePicker = factory<DateTimePickerFactory>((_props, ref) => {
withSeconds={withSeconds}
ref={timeInputRefMerged}
unstyled={unstyled}
{...timeInputProps}
{...getStyles('timeInput', {
className: timeInputProps?.className,
style: timeInputProps?.style,
})}
onChange={handleTimeChange}
onKeyDown={handleTimeInputKeyDown}
minTime={
_value && minDate && _value.toDateString() === minDate.toDateString()
? minTime != null
Expand All @@ -269,6 +262,13 @@ export const DateTimePicker = factory<DateTimePickerFactory>((_props, ref) => {
: undefined
: undefined
}
{...timeInputProps}
{...getStyles('timeInput', {
className: timeInputProps?.className,
style: timeInputProps?.style,
})}
onChange={handleTimeChange}
onKeyDown={handleTimeInputKeyDown}
size={size}
data-mantine-stop-propagation={__stopPropagation || undefined}
/>
Expand Down

0 comments on commit 4a81bf0

Please sign in to comment.