mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 20:38:52 +00:00
fix(core): handle composition event for Input component (#8351)
close AF-1065
This commit is contained in:
@@ -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 ? (
|
||||
|
||||
Reference in New Issue
Block a user