2
0

fix(engine): reset button type to submit

This commit is contained in:
Baptiste Arnaud
2022-08-18 14:48:45 +02:00
parent f9c16ce4c4
commit 741f31a05e
3 changed files with 2 additions and 2 deletions

View File

@ -175,7 +175,6 @@ const CheckoutForm = ({
/>
{isPayButtonVisible && (
<SendButton
type="submit"
label={`${options.labels.button} ${amountLabel}`}
isDisabled={isLoading || !stripe || !elements}
isLoading={isLoading}

View File

@ -17,7 +17,7 @@ export const SendButton = ({
}: SendButtonProps) => {
return (
<button
type="button"
type="submit"
disabled={isDisabled || isLoading}
{...props}
className={

View File

@ -73,6 +73,7 @@ export const TextForm = ({
value={inputValue}
/>
<SendButton
type="button"
label={block.options?.labels?.button ?? 'Send'}
isDisabled={inputValue === ''}
className="my-2 ml-2"