Skip to content

Platform Date Picker is missing the read-only state #14705

Open

Description

@InnaAtanasova

Platform Date Picker (fdp-date-picker) has no working read-only state. It inherits a readonly input from BaseInput, but the component neither uses nor forwards it, and the underlying Core Date Picker has no full-control read-only input to forward to. As a result [readonly]="true" has no effect: the native input's readOnly stays false, the user can type a valid date (which commits and marks the control dirty), and the picker button still opens the calendar.

Expected behavior

  • [readonly]="true" marks the control read-only: typing a date and opening the picker are blocked, and no user action changes the value or marks the control dirty.
  • The native input reflects readOnly = true.
  • The control renders with a read-only visual state.
  • Programmatic updates (setValue, patchValue, writeValue, reset) still work while read-only.

Current behavior

  • readonly is not used/forwarded in the Platform Date Picker template.
  • Core Date Picker exposes no full-control read-only input.
  • Native input.readOnly remains false; typing a valid date commits it and marks the form dirty; the picker trigger still opens (aria-expanded → true).

Steps to reproduce

  1. Set up an fdp-date-picker with [readonly]="true" and a seeded date.
  2. Type a valid date (e.g. 1/3/1990), or click the picker button.
  3. The value changes / the calendar opens; the control is marked dirty.

Dependencies / order of work

fundamental-styles first — add the missing read-only modifier/state classes
(the visual part) for the date picker / its input group and trigger button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions