Skip to content

Commit

Permalink
Merge pull request #1036 from kerwin612/develop
Browse files Browse the repository at this point in the history
Fix the disabled of date-picker is invalid
  • Loading branch information
honkinglin authored Jun 22, 2022
2 parents 83c1109 + 00ebb31 commit e04ba22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/date-picker/hooks/useRange.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export default function useRange(props: TdDateRangePickerProps) {
const rangeInputProps = computed(() => ({
...props.rangeInputProps,
ref: inputRef,
disabled: props.disabled,
clearable: props.clearable,
prefixIcon: props.prefixIcon,
readonly: !props.allowInput,
Expand Down Expand Up @@ -101,6 +102,7 @@ export default function useRange(props: TdDateRangePickerProps) {
const popupProps = computed(() => ({
expandAnimation: true,
...props.popupProps,
disabled: props.disabled,
overlayStyle: props.popupProps?.overlayStyle ?? { width: 'auto' },
overlayClassName: [props.popupProps?.overlayClassName, `${COMPONENT_NAME.value}__panel-container`],
onVisibleChange: (visible: boolean, context: any) => {
Expand Down
1 change: 1 addition & 0 deletions src/date-picker/hooks/useSingle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export default function useSingle(props: TdDatePickerProps) {
const popupProps = computed(() => ({
expandAnimation: true,
...props.popupProps,
disabled: props.disabled,
overlayStyle: props.popupProps?.overlayStyle ?? { width: 'auto' },
overlayClassName: [props.popupProps?.overlayClassName, `${COMPONENT_NAME.value}__panel-container`],
onVisibleChange: (visible: boolean) => {
Expand Down

0 comments on commit e04ba22

Please sign in to comment.