fix(engine): reset button type to submit
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
@@ -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={
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user