Skip to content

Commit 4953650

Browse files
committed
Remove auto focus from IBAN calculator error
The IBAN calculator was being focused when it became visible, causing the page to scroll. This passes focus-on-submit false to it to prevent that happening. Ticket: https://phabricator.wikimedia.org/T394978
1 parent 42c5fce commit 4953650

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/shared/IbanFields.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
@field-changed="validateBankCode"
5353
/>
5454

55-
<ErrorSummary :is-visible="showCalculatorErrorSummary" :items="[
55+
<ErrorSummary :is-visible="showCalculatorErrorSummary" :focus-on-submit="false" :items="[
5656
{
5757
validity: accountNumberError ? Validity.INVALID : Validity.VALID,
5858
message: $t( 'donation_form_account_number_error' ),

0 commit comments

Comments
 (0)