palantir/blueprint

DatePicker disabled/readOnly state

Open

#5 008 ouverte le 3 nov. 2021

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)TypeScript (2 167 forks)batch import
P2Package: datetimeType: enhancementhelp wanted

Métriques du dépôt

Stars
 (20 263 stars)
Métriques de merge PR
 (Merge moyen 43j 10h) (27 PRs mergées en 30 j)

Description

Environment

  • Package version(s): @blueprintjs/datetime 3.23.15
  • Browser and OS versions: N/A (let me know if you need this for whatever reason)

Question

Is there a way to put the DatePicker component into a disabled/readOnly state? I've found that I can put all days in a disabled state like so:

<DatePicker dayPickerProps={{disabledDays: () => true}}/>

But then the user can still interact with the month/year controls.

image

Guide contributeur