You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's the deal: the characters that are used to form the placeholder have nothing to do with the actual format that is used for input. That is, for example, hh means that you need to enter two numbers to indicate the hour, and so on. Users of the interfaces that will be built using data-components most likely do not know anything about the difference between the 'HHandhh` formats in moment or dayjs. In this regard, we believe that it seems impractical to complicate the logic in this place, and users should communicate information about the input format in other more accessible ways - hints, using am/pm format, and so on.
Way to reproduce:
HH:mm:ss
string toDateField
format
prop:Expected:
Input placeholder shows as is.
Actual result:
Input placeholder converts
HH
tohh
.Attachments:
The bug appears on all components using
<DateField>
:I guess, the problem is with
getSectionPlaceholder
function as it uses hard-coded value fromi18n
:date-components/src/components/DateField/utils.ts
Line 365 in e897f50
date-components/src/components/DateField/i18n/en.json
Line 6 in e897f50
The text was updated successfully, but these errors were encountered: