Skip to content

Reworked the USWDS date picker and restored original features for controlling the min/max dates in the date picker in the time span controls

Bucknell, Mary S. requested to merge mbucknell/waterdataui:wdfn-755 into main

Before making a pull request

Description

Updated the USWDSDatePicker to include initializing the USWDS date picker within the component. In order to do this, the code must wait until after loading is complete before adding the 'usa-date-picker' class to the markup. Then added a "changeDate" event to the picker that is emitted when the date picker is used to change the date.

Updated time span controls to fully reimplement the features to set the min/max/range dates when the startDate and endDate are updated. Added code to handle clearing the pickers when the selectedTimeSpan changes to a ISO duration.

After making a pull request

  • If appropriate, put the link to the PR in the JIRA ticket
  • Assign someone to review unless the change is trivial

Merge request reports