mattermost-community/focalboard

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

Open

#2 065 ouverte le 7 janv. 2022

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)TypeScript (26 187 stars) (2 542 forks)user submission
BugHelp WantedUp for grabs

Description

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.

Guide contributeur