I recently updated to Outsystems UI 2.18.4 and noticed something puzzling regarding the DatepickerRange component. The release notes mention a bug fix under ROU-3898
ROU-3898 - Fixed an issue on the DatepickerRange component that allows the selection of dates with disabled dates inside the range.
In Service Studio, when I manage the dependencies, if I go to the client actions DatePickerDisableDays and DatePickerdisableWeekdays I can still see this note:
Due to a provider issue, when using this action on the DatePickerRange, the component behaves differently in Web and Mobile. In Web, it is not possible to select an interval that includes disabled dates. In Mobile, it's possible to do it. Our team is working to ensure an identical experience for Web and Mobile and will update this action as soon as the provider reviews the component behavior.
I am curious about what exactly was "fixed" in this release? Does "fixed" imply a unified behavior across Web and Mobile, but which one?
Personally, I see value in being able to select an interval with disabled dates and calculate the exact dates via a separate action.
This capability could be beneficial for certain scenarios, although I understand the need for restrictions in others. Would it be possible to consider a configurable option in the client action that allows developers to choose whether or not to permit the selection of disabled dates?
I would appreciate any clarification on this matter and thoughts from fellow developers. How do you all manage this component in your projects? Does anyone else feel a configurable option would be helpful?
Thank you!
Hi @Andrea Caselli! The change in the context of ROU-3898 was unifying the behavior across Web and Mobile following the Web behavior (not allowing the selection of intervals that include disabled days), that we believe to be the most common use case. However, your feedback makes sense and is something we will explore in order to incorporate into the product.In the meantime, we will update the release note to be clearer and delete the note in the client action description.Thank you for your feedback!Best regards,Jéssica M.
Hi @Jéssica Mendes,
Thank you very much for the quick and informative response! I appreciate the clarification regarding the unification of the behavior across Web and Mobile to follow the Web model. It's reassuring to know that my feedback is valuable and might contribute to future enhancements of the product.
I look forward to seeing the updated release notes and am excited about the potential incorporation of a configurable option for selecting intervals that include disabled dates. This feature could significantly enhance flexibility for various use cases.
Thank you again!
Best,
Andrea