Skip to content
Snippets Groups Projects
Unverified Commit 108daedf authored by Syukron Rifa'il Muttaqi's avatar Syukron Rifa'il Muttaqi Committed by GitHub
Browse files

Fix submit form on enter key pressed (#1634)

parent bf786e88
No related branches found
No related tags found
No related merge requests found
......@@ -143,8 +143,9 @@ const Button = forwardRef<HTMLButtonElement, ButtonProps>(
{...(typeof as === 'string'
? // eslint-disable-next-line @typescript-eslint/no-explicit-any
(css(buttonStyle) as any)
: { style: buttonStyle, type: isSubmit ? 'submit' : 'button' })}
: { style: buttonStyle })}
disabled={disabled}
type={isSubmit ? 'submit' : 'button'}
{...nativeProps}
>
{children}
......
......@@ -127,7 +127,7 @@ export default function FixEncryptionKey({
<Button
style={{ marginRight: 10 }}
onClick={() => modalProps.onBack()}
type="button"
type="normal"
>
Back
</Button>
......
---
category: Bugfix
authors: [syukronrm]
---
Fix pressing Enter on Encryption Key cancels entry instead of update the key
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment