palantir/blueprint

DateRangePicker shortcut still marked as active after manually updating the range

オープン

#5,223 opened on 2022/04/04

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

Repository metrics

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

説明

Environment

  • Package version(s): "@blueprintjs/core": "^3.40.1", "@blueprintjs/datetime": "^3.22.0",
  • Browser name and version: Chrome

Code Sandbox

Link to a minimal repro (fork this code sandbox):

Steps to reproduce

  1. Create Date Range Picker similar to https://blueprintjs.com/docs/#datetime/daterangepicker image
  2. Select "Past 6 months" and notice shortcut selected image
  3. Change date range manually to a different range image

Actual behavior

"Past 6 months" shortcut still selected

Expected behavior

No shortcut marked as selected

Possible solution

Reset shortcut selection on date range changed in case it's updated.

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