From 6a42978d9f22802f2ccac7264c0d4da94ea7a247 Mon Sep 17 00:00:00 2001 From: Heising Date: Mon, 18 Nov 2024 15:32:24 +0800 Subject: [PATCH] fix(TextArea): fix TextArea event type --- .vscode/settings.json | 5 +++++ src/textarea/Textarea.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 77eec9dea8..e7b7eeed0e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -75,4 +75,9 @@ "tsconfig.json": "tsconfig.*.json", "vitest.config.ts": "babel.config.js, postcss.config.js" }, + "i18n-ally.localesPaths": [ + "src/locale", + "src/_common/js/global-config/locale", + "src/_common/js/global-config/mobile/locale" + ], } \ No newline at end of file diff --git a/src/textarea/Textarea.tsx b/src/textarea/Textarea.tsx index 4fcef82859..5e29dcb019 100644 --- a/src/textarea/Textarea.tsx +++ b/src/textarea/Textarea.tsx @@ -13,7 +13,7 @@ import useDefaultProps from '../hooks/useDefaultProps'; export interface TextareaProps extends Omit< React.TextareaHTMLAttributes, - 'value' | 'defaultValue' | 'onBlur' | 'onChange' | 'onFocus' + 'value' | 'defaultValue' | 'onBlur' | 'onChange' | 'onFocus' | 'onKeyDown' | 'onKeyPress' | 'onKeyUp' >, TdTextareaProps, StyledProps {}