mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-24 18:50:56 +08:00
fix: Chinese input issue in AddProviderPopup (#6445)
This commit is contained in:
parent
bf8f49f87e
commit
2770edf349
@ -180,7 +180,11 @@ const PopupContainer: React.FC<Props> = ({ provider, resolve }) => {
|
||||
value={name}
|
||||
onChange={(e) => setName(e.target.value.trim())}
|
||||
placeholder={t('settings.provider.add.name.placeholder')}
|
||||
onKeyDown={(e) => e.key === 'Enter' && onOk()}
|
||||
onKeyDown={(e) => {
|
||||
if (e.key === 'Enter' && !e.nativeEvent.isComposing) {
|
||||
onOk()
|
||||
}
|
||||
}}
|
||||
maxLength={32}
|
||||
/>
|
||||
</Form.Item>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user