Skip to content

Commit

Permalink
X2-6630: The date does not automatically change when you switch the b…
Browse files Browse the repository at this point in the history
…ooking from public to private (different schedules) if you add more than 1 demographic (#252)

* Removed onChange handler from click outside as it casuses side-effects on the CreatePurchase flow and no longer needed as theres no Apply Button

* Reverted accidental changes
  • Loading branch information
khomyakov authored Aug 22, 2023
1 parent 3e3da00 commit fe1fda2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/components/DatePicker/DatePickerPopover.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ export const DatePickerPopover = ({
};

const handleClickOutside = () => {
// Revert back to the original value because the user didn't apply the changes
onChange(originalValue);
toggleVisibility();
};

Expand Down

0 comments on commit fe1fda2

Please sign in to comment.