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 && ( {isPayButtonVisible && (
<SendButton <SendButton
type="submit"
label={`${options.labels.button} ${amountLabel}`} label={`${options.labels.button} ${amountLabel}`}
isDisabled={isLoading || !stripe || !elements} isDisabled={isLoading || !stripe || !elements}
isLoading={isLoading} isLoading={isLoading}

View File

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

View File

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