Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix closing the datepicker should cancel the ongoing selection 1836 #1856

Conversation

DorianDeptuch
Copy link
Member

Fixes #1836

  • Up to date with main branch
  • Branch name follows guidelines
  • All PR Status checks are successful
  • Peer reviewed and approved

Any questions? See the getting started guide

Copy link
Member

@kdow kdow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I verified this fix works. If any other changes are needed, please include my suggested changes with that update.

// Reassign the From and To Day

//If both startDate and endDate were already selected. Start a new range selection.
if(startDate && endDate){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: add space after if (lines 175 and 180)

setFromDay(day);
updateEndDate(null);
setEnteredTo(null);
//If startDate is selected and endDate is unselected, complete the range selection.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: for comments, add space between // and start of comment

Copy link
Member

@efrenmarin45 efrenmarin45 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the changes and it does resolve the issue brought by #1836

LGTM

Copy link
Member

@DrAcula27 DrAcula27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DorianDeptuch Great job on this issue! Your code passed the ABC's, including:

Copy link
Member

@ryanfchase ryanfchase left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DorianDeptuch feel free to make the "nit" adjustments, otherwise this is looking good 👍

Copy link
Member

@ryanfchase ryanfchase left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. We're ready to punch this through 👍

Merge when ready

@DorianDeptuch DorianDeptuch merged commit ef620ab into hackforla:main Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bugfix: Closing the datepicker should cancel the ongoing selection
5 participants