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
Currently, the header text is showing something like From DD MM YYYY and To DD MM YYYY as the placeholder when there is no date selected, which is kind of weird in my opinion. Users are usually not aware of date formats and it does not give them any real benefit.
I propose 2 solutions:
Don't show the placeholder at all. Just like you'd done in the "single date" mode, show a - before the user chooses a date.
Just show the From and To texts without the date format.
Personally, I lean toward the second option as it gives the user some indication that this is a range picker and we are "waiting" for his input, opposed to the - solution where it's not immediately clear what it stands for.
The change should be rather easy, for the second solution:
exportfunctiongetRangeDatesFormatted({ start, end }={},{ lang },format){constlocale=getLocale(lang);if(!start&&!end){return` ~ `;}if(!start&&end){return` ~ ${dayjs(end).locale(locale).startOf('day').format(format)}`;}if(start&&!end){return`${dayjs(start).locale(locale).startOf('day').format(format)} ~ `;}return`\${dayjs(start).locale(locale).startOf('day').format(format)} \~ \${dayjs(end).locale(locale).startOf('day').format(format)}`;}
The text was updated successfully, but these errors were encountered:
Hey!
Currently, the header text is showing something like
From DD MM YYYY
andTo DD MM YYYY
as the placeholder when there is no date selected, which is kind of weird in my opinion. Users are usually not aware of date formats and it does not give them any real benefit.I propose 2 solutions:
-
before the user chooses a date.From
andTo
texts without the date format.Personally, I lean toward the second option as it gives the user some indication that this is a range picker and we are "waiting" for his input, opposed to the
-
solution where it's not immediately clear what it stands for.The change should be rather easy, for the second solution:
The text was updated successfully, but these errors were encountered: