web/stages/authenticator_totp: fix enter button triggering copy button

This commit is contained in:
Jens Langhammer 2021-02-25 22:43:42 +01:00
parent ab200a1dfb
commit eccea8eba0

View file

@ -47,7 +47,7 @@ export class AuthenticatorTOTPStage extends BaseStage {
<ak-form-element>
<!-- @ts-ignore -->
<qr-code data="${this.challenge.config_url}"></qr-code>
<button class="pf-c-button pf-m-secondary pf-m-progress pf-m-in-progress" @click=${(e: Event) => {
<button type="button" class="pf-c-button pf-m-secondary pf-m-progress pf-m-in-progress" @click=${(e: Event) => {
e.preventDefault();
if (!this.challenge?.config_url) return;
navigator.clipboard.writeText(this.challenge?.config_url).then(() => {