Skip to content

Commit

Permalink
Merge pull request #1667 from ProcessMaker/observation/FOUR-17519
Browse files Browse the repository at this point in the history
observation/FOUR-17519 Added a isVisible validation when the input is not visible in mobile
  • Loading branch information
ryancooley authored Aug 13, 2024
2 parents b3f710d + 3beeb61 commit 13b7d88
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ValidationsFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,10 @@ class PageNavigateValidations extends Validations {
*/
class FormElementValidations extends Validations {
async addValidations(validations) {
// Disable validations if field is hidden
if (!this.isVisible()) {
return;
}
if (this.element.config && this.element.config.readonly) {
//readonly elements do not need validation
return;
Expand Down

0 comments on commit 13b7d88

Please sign in to comment.