fix: add preventDefaultSubmit prop to BaseForm to prevent unwanted page refresh on Enter key

This commit is contained in:
lyzno1
2025-09-18 12:48:26 +08:00
parent 5a6cb0d887
commit 8141f53af5
2 changed files with 14 additions and 0 deletions

View File

@ -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>
)}