diff --git a/.changeset/tidy-coins-call.md b/.changeset/tidy-coins-call.md new file mode 100644 index 0000000000..b75e8ba5c5 --- /dev/null +++ b/.changeset/tidy-coins-call.md @@ -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) diff --git a/packages/components/table/src/use-table.ts b/packages/components/table/src/use-table.ts index 37f8ec445c..56f48b01d4 100644 --- a/packages/components/table/src/use-table.ts +++ b/packages/components/table/src/use-table.ts @@ -269,6 +269,9 @@ export function useTable(originalProps: UseTableProps) { }), 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)}), }),