mattermost-community/focalboard

Bug: Date picker - clicking "today" multiple times when date range is set clears the date

开放

#2,065 创建于 2022年1月7日

 (0 条评论) (0 个反应) (0 位负责人)TypeScript (2,542 个派生)user submission
BugHelp WantedUp for grabs

仓库指标

星标
 (26,187 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Steps to reproduce the behavior

  1. Open a card
  2. Create a date property and edit it
  3. Select a date
  4. Enable "Date range" and select an end date
  5. Click on the "today" button - it sets start date to today
  6. Click "today" again - it sets the end date to today
  7. Click "today" again - it clears the date
  8. Click "today" again - it re-sets the date to just today, without a range

Expected behavior

Clicking "today" the third time should not clear the date.

Screenshots

https://user-images.githubusercontent.com/46905241/148566850-962820c6-14d3-422c-8223-8bdcfa259b5e.mov

Edition and Platform

  • Edition: Mattermost plugin
  • Version: v0.12 RC1
  • Browser and OS: Mac Chrome

Additional context

If only a single date is selected to begin with, clicking "today" multiple times does not clear the picker.

贡献者指南