LearnNewsExamplesServices
Frontmatter
id4307
titleform.field.Text: validate() => validator
stateClosed
labels
enhancement
assigneestobiu
createdAtApr 20, 2023, 2:44 PM
updatedAtApr 20, 2023, 2:45 PM
githubUrlhttps://github.com/neomjs/neo/issues/4307
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtApr 20, 2023, 2:45 PM

form.field.Text: validate() => validator

Closed v8.1.0 enhancement
tobiu
tobiu commented on Apr 20, 2023, 2:44 PM

@Dinkh right now, the validator check happens first and all other rules are inside an else if block.

meaning: if a validator is specified and valid, other rules like required are getting ignored.

i think it is nicer in case a validator combines with default validation rules.

tobiu added the enhancement label on Apr 20, 2023, 2:44 PM
tobiu assigned to @tobiu on Apr 20, 2023, 2:44 PM
tobiu referenced in commit 3c9999b - "form.field.Text: validate() => validator #4307" on Apr 20, 2023, 2:44 PM
tobiu closed this issue on Apr 20, 2023, 2:45 PM