Skip to content

Commit ce8ba57

Browse files
committed
fix:delete hasSubmitValue check
1 parent f3d6a4d commit ce8ba57

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/PickerInput/hooks/useRangeValue.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,6 @@ export default function useRangeValue<ValueType extends DateType[], DateType ext
185185
flushSubmit: (index: number, needTriggerChange: boolean) => void,
186186
/** Trigger `onChange` directly without check `disabledDate` */
187187
triggerSubmitChange: (value: ValueType) => boolean,
188-
/** Tell `index` has filled value in it */
189-
hasSubmitValue: (index: number) => boolean,
190188
] {
191189
const {
192190
// MISC
@@ -332,11 +330,6 @@ export default function useRangeValue<ValueType extends DateType[], DateType ext
332330
2,
333331
);
334332

335-
// ============================ Check =============================
336-
function hasSubmitValue(index: number) {
337-
return !!submitValue()[index];
338-
}
339-
340333
// ============================ Return ============================
341-
return [flushSubmit, triggerSubmit, hasSubmitValue];
334+
return [flushSubmit, triggerSubmit];
342335
}

0 commit comments

Comments
 (0)