mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-01 15:09:33 +08:00
Merge pull request #14103 from filamentphp/revert-14063-fix/issue-13988
Revert "Enhanced default `focusedDate` logic in `DateTimePicker`"
This commit is contained in:
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
@@ -386,16 +386,8 @@ export default function dateTimePickerFormComponent({
|
||||
if (!this.isOpen()) {
|
||||
this.focusedDate =
|
||||
this.getSelectedDate() ??
|
||||
(dayjs()
|
||||
.tz(timezone)
|
||||
.isBetween(
|
||||
this.getMinDate(),
|
||||
this.getMaxDate(),
|
||||
null,
|
||||
'[]',
|
||||
)
|
||||
? dayjs().tz(timezone)
|
||||
: this.getMinDate() ?? this.getMaxDate())
|
||||
this.getMinDate() ??
|
||||
dayjs().tz(timezone)
|
||||
|
||||
this.setupDaysGrid()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user