fix(table): v2 input/textarea don't allow spaces inside a table (#3020)

* fix(table): set onKeyDownCapture to undefined

* feat(changeset): add changeset
This commit is contained in:
աӄա 2024-05-19 21:05:51 +08:00 committed by GitHub
parent f5bf12aedf
commit 9d63259eea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
"@nextui-org/table": patch
---
set `onKeyDownCapture` to `undefined` so that users can type with spaces in input or textarea inside a table component (#1968)

View File

@ -269,6 +269,9 @@ export function useTable<T extends object>(originalProps: UseTableProps<T>) {
}),
props,
),
// avoid typeahead debounce wait for input / textarea
// so that typing with space won't be blocked
onKeyDownCapture: undefined,
ref: domRef,
className: slots.table({class: clsx(classNames?.table, props?.className)}),
}),