diff --git a/src/page/stylesheets/reset.scss b/src/page/stylesheets/reset.scss index 1fbcad296..81c8188ab 100755 --- a/src/page/stylesheets/reset.scss +++ b/src/page/stylesheets/reset.scss @@ -490,7 +490,7 @@ font-family: arial, helvetica, sans-serif; font-size: small; background: white; - -webkit-appearance: push-button; + appearance: button; color: buttontext; border: 1px #a6a6a6 solid; background: lightgrey; /* Old browsers */ diff --git a/src/shared/managers/CustomLinkManager.ts b/src/shared/managers/CustomLinkManager.ts index 87deddd1c..fa900c286 100644 --- a/src/shared/managers/CustomLinkManager.ts +++ b/src/shared/managers/CustomLinkManager.ts @@ -114,6 +114,10 @@ export class CustomLinkManager { await this.handleClick(subscribeButton); }); + // Adds type="button" to the Custom Link Button. + // This prevents this button submitting if included in a form. + subscribeButton.setAttribute('type', 'button'); + element.appendChild(subscribeButton); } }