palantir/blueprint

DatePicker disabled/readOnly state

オープン

#5,008 opened on 2021/11/03

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)TypeScript (2,167 件のフォーク)batch import
P2Package: datetimeType: enhancementhelp wanted

Repository metrics

Stars
 (20,263 個のスター)
PR merge metrics
 (平均マージ 43d 10h) (30d で 27 merged PRs)

説明

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

コントリビューターガイド