mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
fix(date-range-picker): input field clear error (#3409)
Co-authored-by: shrinidhi.upadhyaya <shrinidhi.upadhyaya@stud.uni-bamberg.de>
This commit is contained in:
parent
106752aaef
commit
9806d1c6c0
@ -88,7 +88,7 @@ export default function App() {
|
||||
</ButtonGroup>
|
||||
}
|
||||
calendarProps={{
|
||||
focusedValue: value.start,
|
||||
focusedValue: value?.start,
|
||||
onFocusChange: (val) => setValue({...value, start: val}),
|
||||
nextButtonProps: {
|
||||
variant: "bordered",
|
||||
|
||||
@ -349,7 +349,7 @@ const PresetsTemplate = (args: DateRangePickerProps) => {
|
||||
</ButtonGroup>
|
||||
}
|
||||
calendarProps={{
|
||||
focusedValue: value.start,
|
||||
focusedValue: value?.start,
|
||||
onFocusChange: (val) => setValue({...value, start: val}),
|
||||
nextButtonProps: {
|
||||
variant: "bordered",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user