Esri / calcite-design-system

A monorepo containing the packages for Esri's Calcite Design System
https://developers.arcgis.com/calcite-design-system/
Other
289 stars 76 forks source link

Add ability to restrict character input to calcite-input-time-picker #6898

Closed BennyBaruba closed 6 months ago

BennyBaruba commented 1 year ago

Description

As it stands now, users can input any characters into the calcite-input-time-picker.

image

This enhancement is a request to add the ability to restrict what characters can be typed in directly to the calcite-input-time-picker. For english the user should only be able to type in 2 numbers for each the hour, minutes and seconds and only am or pm in a 12 hour format.

Acceptance Criteria

Relevant Info

A similar issue exists with the calcite-input-date-picker.

image

Which Component

calcite-input-time-picker

Example Use Case

image

Priority impact

p4 - not time sensitive

Esri team

ArcGIS Mission

geospatialem commented 7 months ago

Should we consider using error handling for a solution and/or strip out invalid values? For instance, Atlassian will let the user type in a value and then reset once the component's blurred.

DitwanP commented 7 months ago

We want masked inputs for time-picker. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/time

geospatialem commented 6 months ago

Closing in favor of https://github.com/Esri/calcite-design-system/issues/2709, where masking will be considered as part of the effort,