bcgov / bcgov/entity

UI - Date Picker Cancel Functionality

Open
#15,940 2 comments 0 reactions 0 assignees View on GitHub
Assets bug
Dominant language
JavaScript
Stars
23
Forks
62
Avg merge
24m
Merged PRs (30d)
1

Description

1) If a date is entered, when the date picker is opened again if the user chooses Cancel, the date picker should no longer display, and the date in the field should display as it did before the date picker was re-opened and then cancelled. A user may change the date, then choose cancel because they do not wish to move forward with the change. A user may also just open the date picker, make no change, and choose cancel. (ie Cancel should always just close the date picker, leaving date field as it was before opening the date picker)

Currently the date picker is clearing the date when Cancel is selected.

- this should apply everywhere the component is used

2) Add clear x to date field once added. See PPR's Repairers Lien Surrender Date close X:

![Screen Shot 2023-04-25 at 10.23.42 AM.png](https://images.zenhubusercontent.com/5e1cd2cd5d67f0528e482520/2bfd7a86-ed42-49c9-91ee-5cc9972b662a)

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files or tests; start by locating the shared date-picker component and its usages, then reproduce cancel behavior with an existing date and with an unchanged picker. Check every usage for consistent cancel restoration and clear-control behavior, and verify that the field remains unchanged on cancel while the clear control appears after a date is set.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.