Skip to content

Commit 6284963

Browse files
authored
Merge pull request #1 from devforth/fix-otp-inputs
fix: force numeric keyboard on mobile
2 parents e0b9dbb + c718ccc commit 6284963

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

custom/TwoFactorsConfirmation.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
input-classes="bg-gray-50 text-center flex justify-center otp-input border leading-none border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-10 h-10 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
2121
:conditionalClass="['one', 'two', 'three', 'four', 'five', 'six']"
2222
inputType="number"
23+
inputmode="numeric"
2324
:num-inputs="6"
2425
v-model:value="bindValue"
2526
:should-auto-focus="true"

custom/TwoFactorsSetup.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
input-classes="bg-gray-50 text-center flex justify-center otp-input border leading-none border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-10 h-10 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
4040
:conditionalClass="['one', 'two', 'three', 'four', 'five', 'six']"
4141
inputType="number"
42+
inputmode="numeric"
4243
:num-inputs="6"
4344
:should-auto-focus="true"
4445
:should-focus-order="true"

0 commit comments

Comments
 (0)