From 342b8fafbac5b2c9074fef9427a188e121b6bea2 Mon Sep 17 00:00:00 2001 From: Maribeth Bottorff Date: Fri, 28 Apr 2023 12:30:08 -0700 Subject: [PATCH 1/2] fix: use inputMode instead of type for number fields --- core/field_number.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/field_number.ts b/core/field_number.ts index e7a40f9a14a..e00502f3e14 100644 --- a/core/field_number.ts +++ b/core/field_number.ts @@ -283,7 +283,7 @@ export class FieldNumber extends FieldInput { */ protected override widgetCreate_(): HTMLInputElement { const htmlInput = super.widgetCreate_() as HTMLInputElement; - htmlInput.type = 'number'; + htmlInput.inputMode = 'numeric'; // Set the accessibility state if (this.min_ > -Infinity) { From cfa1a2b3b44e5b763b571a83fbc858203e764d33 Mon Sep 17 00:00:00 2001 From: Maribeth Bottorff Date: Wed, 14 Jun 2023 09:17:37 -0700 Subject: [PATCH 2/2] fix: remove input type and mode from number field --- core/field_number.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/core/field_number.ts b/core/field_number.ts index 6200f854084..511f275539d 100644 --- a/core/field_number.ts +++ b/core/field_number.ts @@ -295,7 +295,6 @@ export class FieldNumber extends FieldInput { */ protected override widgetCreate_(): HTMLInputElement { const htmlInput = super.widgetCreate_() as HTMLInputElement; - htmlInput.inputMode = 'numeric'; // Set the accessibility state if (this.min_ > -Infinity) {