diff --git a/lib/component/input/index.ts b/lib/component/input/index.ts index 9524ca3..98a95f5 100644 --- a/lib/component/input/index.ts +++ b/lib/component/input/index.ts @@ -47,6 +47,7 @@ export { default as DragAndDropFileInput } from "./file/DragAndDropFileInput"; export { default as FileInput } from "./file/FileInput"; export { default as NumberInput } from "./number/NumberInput"; export { default as OptionInput } from "./text/OptionInput"; +export { default as PhoneInput } from "./text/PhoneInput"; export { default as SelectInput } from "./text/SelectInput"; export { default as TextArea } from "./text/TextArea"; export { default as TextInput } from "./text/TextInput"; diff --git a/lib/component/input/text/TextArea.tsx b/lib/component/input/text/TextArea.tsx index 05cc6f0..7b6f05e 100644 --- a/lib/component/input/text/TextArea.tsx +++ b/lib/component/input/text/TextArea.tsx @@ -16,6 +16,7 @@ export default function TextArea({ placeholder, value, onChange, + onKeyDown, disabled }: Readonly){ const componentId = useId(); @@ -44,14 +45,15 @@ export default function TextArea({ rows={rows} cols={cols} value={value} - onChange={onChange} + onChange={(e) => onChange?.(e.target.value)} + onKeyDown={onKeyDown} disabled={disabled} spellCheck={spellCheck} />