[Silk UI Web] Button .Load Class Bug

[Silk UI Web] Button .Load Class Bug

  
Forge Component
(55)
Published on 2017-12-20 by OutSystems R&D
55 votes
Published on 2017-12-20 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!