Skip to content

Commit

Permalink
fix:delete hasSubmitValue check
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyf665 committed Dec 19, 2024
1 parent f3d6a4d commit ce8ba57
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/PickerInput/hooks/useRangeValue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,6 @@ export default function useRangeValue<ValueType extends DateType[], DateType ext
flushSubmit: (index: number, needTriggerChange: boolean) => void,
/** Trigger `onChange` directly without check `disabledDate` */
triggerSubmitChange: (value: ValueType) => boolean,
/** Tell `index` has filled value in it */
hasSubmitValue: (index: number) => boolean,
] {
const {
// MISC
Expand Down Expand Up @@ -332,11 +330,6 @@ export default function useRangeValue<ValueType extends DateType[], DateType ext
2,
);

// ============================ Check =============================
function hasSubmitValue(index: number) {
return !!submitValue()[index];
}

// ============================ Return ============================
return [flushSubmit, triggerSubmit, hasSubmitValue];
return [flushSubmit, triggerSubmit];
}

0 comments on commit ce8ba57

Please sign in to comment.