52
Views
2
Comments
[OutSystems UI] [V2.10.0 DatePicker] Manual input date time not sticking
outsystems-ui
Reactive icon
Forge asset by OutSystems
Application Type
Reactive

Hello everyone!

I'm currently facing this issue with the OUI DatePicker.

When inserting a date (in the dd-mm-yyyy - hh:mm format, otherwise it won't register the date and time correctly) we are encountering a weird behavior by the widget.

If it's the first time inserting the date time, and we click outside of the widget/input, it saves it correctly.

If we edit it once more, and afterwards click inside the widget (in an open space on the calendar as an example), it also saves the input date time correctly.

However if we change it and click outside of the input/calendar, the date time reverts to the one it was before (attempted to change it to 11:28, and it reverted back to 11:25).

As already mentioned in these forums, if you click "enter" after typing in the value, then it is propagated correctly.

I've seen some examples of similar situations here, however they appear to be from different versions, and as such do not appear to work.

Is there a way to save the value of the datetime when clicking outside of the input/calendar, mimicking the behavior of an "Enter" press?

Thank you

2022-04-08 16-49-21
José Rio

Hi @Rodrigo Alves

Think this was fixed at the v2.12.0

However, and just to be sure and also test your use case, are you able to share an oml with it?

Thanks in advance!

Cheers,
JR

2025-02-20 09-44-55
Rodrigo Alves

Hey José,

I do believe that as well, but there is an uncertainty to upgrading since it may break other widgets (custom css and what not), we are currently weighing in the options with regards to upgrading to a more recent version.

As for the OML, i made a very simple version of what we have on our app, but the behavior is very similar, if you attempt to save the hour/date changes by clicking outside the element, it will revert back. The only way is through the Enter key, or through the datepicker itself.


Thank you!

DatePickerTest.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.