[Silk UI Web] Button .Load Class Bug

[Silk UI Web] Button .Load Class Bug

  
Forge Component
(62)
Published on 24 May (3 days ago) by OutSystems R&D
62 votes
Published on 24 May (3 days ago) by OutSystems R&D

I've notice that using the .Load class on links results on always firing the client side validations, completely ignoring the provided validation parameter.

I think that the onclick function added to the links should check if the link was supposed to fire the client side validation before firing.

The clickedFunction should be change from:

function clickedFunction(event){
       if(OsPage_ClientValidate(this.id)){
       ...

to something like

function clickedFunction(event){
       var IsValidatingForm = $(this).attr("onclick").indexOf("ClientValidate") >= 0;
       if(IsValidatingForm && !OsPage_ClientValidate(this.id)) return;
       ...


I'm facing the same problem!

I'm too!

It has been a long time, several Silk version were released and none of those versions address this issue, so i believe it will be ignored. :(


Just in case someone faced the same issue, i've published a component that works around the problem:

https://www.outsystems.com/forge/component/2579/button-locker/

Hello!

The team has been looking into this issue and there will be a release with an updated Load button mechanism next week, along with other improvements on the framework.

Thank you for raising the issue and for pointing a solution as well :)

My regards,