dashjoin / platform

Dashjoin Is an Open Source & Cloud Native Low Code Development and Integration Platform that helps teams deliver applications faster 🚀 Uses a data-driven approach inspired by Linked Data to make use of your existing assets
https://dashjoin.com
GNU Affero General Public License v3.0
89 stars 7 forks source link

Action behind Button widget is triggered although input is invalid #382

Open pgrill79 opened 1 week ago

pgrill79 commented 1 week ago

I have a button widget, with some input "validations".

When the button is clicked, i call a function that does some database actions.

I would expect that if the input is invalid, (because of regex, mandatory, eg), the action is not triggered. But it seems that even if the validation throws errors, the action behind is called nevertheless:

image

(The db actions should not be triggered)

This is the code behind the button:

`$result:= $call("db_insertAnimal", {

"ctx":$, "clientId":$.value.id, "origin":$.form.origin, "eartag":$.form.eartag, "name":$.form.name, "fk_breed":$.form.breed, "fk_sex":$.form.sex, "color":$.form.color, "birth":$.form.dateofbirth, "deceased":$.form.deceased } );`

aeberhart commented 1 week ago

That's a known issue in the 5.1.30 release. Will be addressed before 5.2 is released.

Background: The form validation was incompatible with an update of the react core package. Therefore, we needed to temporarily disable the validation blocking submission