mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 10:28:10 +08:00
fix: add preventDefaultSubmit prop to BaseForm to prevent unwanted page refresh on Enter key
This commit is contained in:
@ -218,6 +218,7 @@ export const CommonCreateModal = ({ onClose, createType }: Props) => {
|
||||
formSchemas={credentialsSchema}
|
||||
ref={credentialsFormRef}
|
||||
labelClassName='system-sm-medium mb-2 block text-text-primary'
|
||||
preventDefaultSubmit={true}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user