Hello,
On the latest version of Outsystems UI (2.18.0), it's seems there's an issue when a datepicker field is mandatory.
When it becomes invalid, the red border of the hidden input (created by the datepicker) is also shown:
Best regards,
Bruno Lourenço
Hi @Bruno Lourenço
Long time no see 🙂
This is in fact an issue that we already have in the backlog under code ROU-4635 (for reference in the release notes - no ETA at this moment).Meanwhile, you can try to add the following CSS selector to help you cover this use case:
.osui-datepicker .form-control.not-valid[data-input]:first-of-type,.osui-monthpicker .form-control.not-valid[data-input]:first-of-type,.osui-timepicker .form-control.not-valid[data-input]:first-of-type { display:none; }
Hope it helps!
Cheers,GM
Hi Bruno Lourenço ,
Yes, I think this is a bug in the latest OutSystems UI version.
I faced the same issue and tried the below CSS on the screen where it was used.
This removed the extra text box. Give it a try and let me know your observations. Thanks.
.osui-datepicker input.not-valid{ display: none;}
Could please indicate the Platform Server version you're using?That would be really useful.
Hello Gonçalo,
Sure thing, we are using the version 11.20.0 (Build 38549).