Commit 1e6fcf8
FORMS-25983: fix handleMinMaxValidation — only clear invalid when our own error is active
Avoids clobbering required/pattern errors set by other validators: instead of
unconditionally setting field.invalid = false, check that the errorMessage on the
field is the one we set before clearing it.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 2e98d8a commit 1e6fcf8
1 file changed
Lines changed: 16 additions & 9 deletions
File tree
- ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/af-commons/v1/clientlibs/editor/utils
Lines changed: 16 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
| 347 | + | |
| 348 | + | |
352 | 349 | | |
353 | | - | |
354 | | - | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
355 | 354 | | |
356 | | - | |
357 | | - | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
358 | 365 | | |
359 | 366 | | |
360 | 367 | | |
| |||
0 commit comments