fix(engine): reset button type to submit
This commit is contained in:
@ -175,7 +175,6 @@ const CheckoutForm = ({
|
||||
/>
|
||||
{isPayButtonVisible && (
|
||||
<SendButton
|
||||
type="submit"
|
||||
label={`${options.labels.button} ${amountLabel}`}
|
||||
isDisabled={isLoading || !stripe || !elements}
|
||||
isLoading={isLoading}
|
||||
|
@ -17,7 +17,7 @@ export const SendButton = ({
|
||||
}: SendButtonProps) => {
|
||||
return (
|
||||
<button
|
||||
type="button"
|
||||
type="submit"
|
||||
disabled={isDisabled || isLoading}
|
||||
{...props}
|
||||
className={
|
||||
|
@ -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"
|
||||
|
Reference in New Issue
Block a user