Uploaded image for project: 'PUBLIC - Liferay Alloy UI'
  1. PUBLIC - Liferay Alloy UI
  2. AUI-708

AUI Form Validator should only validate against fields when rules are passed

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.x
    • Fix Version/s: 2.0.x, 1.5.3
    • Component/s: Form - JS (deprecated)
    • Labels:
      None

      Description

      If the user uses Javascript to update an input field that previously had validation, the field will no longer validate since there are no rules for this new field name.

      The "_onBlurField" method takes the "event.currentTarget" and passes the input field to the "validateField" method and then to the "validatable" method. In the "validatable" method we have no rules listed for this new input field which throws a Javascript error.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              nathan.cavanaugh Nate Cavanaugh
              Reporter:
              jonathan.mak Jonathan Mak (Inactive)
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                9 years, 5 weeks, 1 day ago

                  Packages

                  Version Package
                  2.0.x
                  1.5.3