Skip to content

Commit

Permalink
fix: remove useless selectedValue
Browse files Browse the repository at this point in the history
  • Loading branch information
ZWkang committed Oct 26, 2023
1 parent b26360e commit da9e0a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ function InnerPicker<DateType>(props: PickerProps<DateType>) {
!selectedValue ||
// Normal disabled check
(disabledDate && disabledDate(selectedValue)) ||
validateTime(picker, disabledTime, selectedValue || timeProps?.defaultValue, generateConfig)
validateTime(picker, disabledTime, selectedValue, generateConfig)
) {
return false;
}
Expand Down

0 comments on commit da9e0a1

Please sign in to comment.