Commit c9d4421
Dustyn Blackmore
Fix Validation Bug
Found I had handled the switch (type) of input in the same way for each type.
I have left the switch, as I know it will be needed on checkbox types (and others), but removed duplicate code.
Additionally; reset state of the base validationErrorMessage to ''.
This requires a minor fix as part of another issue to provide default validation failing onComponentDidMount.1 parent 868397a commit c9d4421
1 file changed
Lines changed: 7 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | 230 | | |
243 | | - | |
| 231 | + | |
244 | 232 | | |
245 | 233 | | |
246 | 234 | | |
| |||
406 | 394 | | |
407 | 395 | | |
408 | 396 | | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | 397 | | |
422 | | - | |
| 398 | + | |
423 | 399 | | |
424 | 400 | | |
425 | 401 | | |
426 | | - | |
| 402 | + | |
427 | 403 | | |
428 | 404 | | |
429 | 405 | | |
430 | 406 | | |
431 | 407 | | |
432 | | - | |
| 408 | + | |
433 | 409 | | |
434 | 410 | | |
435 | 411 | | |
| |||
448 | 424 | | |
449 | 425 | | |
450 | 426 | | |
| 427 | + | |
| 428 | + | |
451 | 429 | | |
452 | 430 | | |
453 | 431 | | |
| |||
561 | 539 | | |
562 | 540 | | |
563 | 541 | | |
564 | | - | |
| 542 | + | |
565 | 543 | | |
566 | 544 | | |
567 | 545 | | |
| |||
0 commit comments