fix(core): handle composition event for Input component (#8351)

close AF-1065
This commit is contained in:
JimmFly
2024-09-25 02:02:23 +00:00
parent ed8e4e30f0
commit 2df2003bd7
10 changed files with 166 additions and 98 deletions

View File

@@ -30,11 +30,7 @@ export const AuthInput = ({
className={clsx(className)}
size="extraLarge"
status={error ? 'error' : 'default'}
onKeyDown={e => {
if (e.key === 'Enter') {
onEnter?.();
}
}}
onEnter={onEnter}
{...inputProps}
/>
{error && errorHint && !withoutHint ? (