Skip to content

fix: Time input placeholder to respect timeInputFormat for date-range-picker#4246

Merged
Who-is-PS merged 2 commits intomainfrom
dev-v3-philosr-date-range-time-fix
Feb 12, 2026
Merged

fix: Time input placeholder to respect timeInputFormat for date-range-picker#4246
Who-is-PS merged 2 commits intomainfrom
dev-v3-philosr-date-range-time-fix

Conversation

@Who-is-PS
Copy link
Member

Description

Time input placeholder now derives from the i18n timePlaceholder value based on timeInputFormat. Previously, using i18n support caused the full placeholder (e.g., hh:mm:ss) to always display regardless of the format setting.

  • timeInputFormat="hh:mm:ss""HH:MM:SS" (full)
  • timeInputFormat="hh:mm""HH:MM" (truncated)
  • timeInputFormat="hh""HH" (truncated)

Related links, issue #, if available: n/a

How has this been tested?

Added test to verify truncation with non-English placeholder.

Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@Who-is-PS Who-is-PS marked this pull request as ready for review February 12, 2026 12:25
@Who-is-PS Who-is-PS requested a review from a team as a code owner February 12, 2026 12:25
@Who-is-PS Who-is-PS requested review from ernst-dev and removed request for a team February 12, 2026 12:25
});
});

describe('time input placeholder', () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggest testing hour-only as well, for completeness

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, added hour-only test.

@codecov
Copy link

codecov bot commented Feb 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.19%. Comparing base (40696d3) to head (64912be).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4246   +/-   ##
=======================================
  Coverage   97.19%   97.19%           
=======================================
  Files         886      886           
  Lines       26017    26021    +4     
  Branches     9431     9434    +3     
=======================================
+ Hits        25287    25291    +4     
  Misses        683      683           
  Partials       47       47           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Who-is-PS Who-is-PS enabled auto-merge February 12, 2026 14:27
@Who-is-PS Who-is-PS added this pull request to the merge queue Feb 12, 2026
Merged via the queue into main with commit 9fc78ce Feb 12, 2026
55 of 57 checks passed
@Who-is-PS Who-is-PS deleted the dev-v3-philosr-date-range-time-fix branch February 12, 2026 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants