mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
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:
parent
f5bf12aedf
commit
9d63259eea
5
.changeset/tidy-coins-call.md
Normal file
5
.changeset/tidy-coins-call.md
Normal 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)
|
||||
@ -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)}),
|
||||
}),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user