fix(checkbox): incorrect onChange typing in Checkbox Group (#2595)

* fix(checkbox): incorrect onChange typing in Checkbox Group

* fix(checkbox): remove onChange from Props instead
This commit is contained in:
աӄա 2024-04-02 01:50:11 +08:00 committed by GitHub
parent c188e4d628
commit ef6ea6c1ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"@nextui-org/checkbox": patch
---
Fixed incorrect onChange typing in Checkbox Group

View File

@ -46,7 +46,7 @@ interface Props extends HTMLNextUIProps<"div"> {
onValueChange?: AriaCheckboxGroupProps["onChange"];
}
export type UseCheckboxGroupProps = Props &
export type UseCheckboxGroupProps = Omit<Props, "onChange"> &
AriaCheckboxGroupProps &
Partial<
Pick<