Skip to content

Commit 8a472bd

Browse files
author
Talmiz Ahmed
committed
Input Mode for tel and email fields
1 parent 781343a commit 8a472bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

blocks/form/form.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ function inputDecorator(field, element) {
310310
input.setAttribute('display-value', field.displayValue ?? '');
311311
if (['tel', 'email'].includes(fieldType)) {
312312
input.type = fieldType;
313+
input.inputMode = fieldType;
313314
} else {
314315
input.type = 'text';
315316
}

0 commit comments

Comments
 (0)