Simon-Initiative / oli-torus

Next Generation OLI Authoring and Delivery Platform
https://proton.oli.cmu.edu
MIT License
83 stars 35 forks source link

[BUG FIX] [MER-3131] Change onChange to onBlur to avoid unnecessary parsing that breaks the date-time picker #5000

Closed Francisco-Castro closed 1 month ago

Francisco-Castro commented 1 month ago

Ticket: MER-3131

This PR fixes a bug that occurred when trying to change the date in the Scheduling page. The issue was caused by our date picker being triggered with every change to the date input, which attempted to parse the date prematurely. To avoid this behavior, we changed the onChange event to the onBlur event. This allows the user to complete entering the date before it is parsed.