Repository navigation
FSHSP-271 fix(datepicker): show the time row in timeOnly mode - #197
Merged
Merged
Conversation
The time steppers were gated on showTime alone, so timeOnly without showTime opened an empty panel (the day grid is already hidden there). Gate them on hasTimeComponent (showTime || timeOnly) instead. The TimeOnly story also set showTime, which hid the bug: drop it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Jira: FSHSP-271.
Reported by a project on 0.12.1, still present in 0.16.0:
timeOnlywithoutshowTimeopens an empty panel. The day grid is hidden bytimeOnly, but the time steppers were gated onshowTimealone.What changes
ui-datepicker.html: the time row is gated onhasTimeComponent()(showTime || timeOnly) instead ofshowTime(). The computed already existed (ISO date-time serialization); it goes fromprivatetoprotectedfor the template.TimeOnlystory: dropsshowTime: true— it was masking the bug, and the story now showstimeOnlythe way it is documented.timeOnly-only host — the panel opens on the time row (no day cells), and stepping the hours commits09:15 → 10:15.Fixedentry under[Unreleased].For the reviewer
applyTime()already handlestimeOnly(it bases the value on today, not on the view date).showTimetogether withtimeOnly.ng test ui-kit351/351, ESLint anddocs:config:checkgreen. Checked in a static Storybook build (Playwright): time row shown, field updated on step, Escape closes the panel.🤖 Generated with Claude Code