Skip to content

Commit c8c66ff

Browse files
authored
add is valid to datetimepicker (#3183)
1 parent ff06e32 commit c8c66ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/dateTimePicker/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ const DateTimePicker = forwardRef((props: DateTimePickerPropsInternal, ref: Forw
151151

152152
useImperativeHandle(ref, () => {
153153
return {
154+
isValid: () => textField.current?.isValid(),
154155
validate: () => textField.current?.validate()
155156
};
156157
});

0 commit comments

Comments
 (0)