fix(date-picker): invalid and disabled props removed (#2737)

This commit is contained in:
Junior Garcia 2024-04-16 12:37:50 -03:00 committed by GitHub
parent ed1dbbc172
commit fdbfa1f299
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -0,0 +1,5 @@
---
"@nextui-org/date-picker": patch
---
Static props removed from date range input picker field

View File

@ -44,8 +44,6 @@ function DateRangePickerField<T extends DateValue>(
let state = useDateFieldState({
...otherProps,
locale,
isInvalid: true,
isDisabled: true,
validationBehavior: "native",
createCalendar:
!createCalendarProp || typeof createCalendarProp !== "function"