Skip to content

Commit

Permalink
Revert "FIO-4405: fixed an issue where walidation error displays with…
Browse files Browse the repository at this point in the history
… empty value even if it is not required (#4746)" (#5398)

This reverts commit 3a8d7d6.
  • Loading branch information
lane-formio authored Nov 7, 2023
1 parent 3edd00c commit c650422
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/components/_classes/component/Component.js
Original file line number Diff line number Diff line change
Expand Up @@ -3321,8 +3321,6 @@ export default class Component extends Element {

shouldSkipValidation(data, dirty, row) {
const rules = [
// Do not check custom validation for empty data if it is not required
() => this.component.validate.custom && !this.dataValue && !this.component.validate.required,
// Force valid if component is read-only
() => this.options.readOnly,
// Do not check validations if component is not an input component.
Expand Down

0 comments on commit c650422

Please sign in to comment.