Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-26053

Fix inconsistency on layout validation feedback

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: QualifiedToSchedule
    • Component/s: Web UI
    • Tags:
    • Backlog priority:
      600

      Description

      We need to move the "focus on invalid widget" validation logic, introduced in NXP-25935, to nuxeo-layout. This will allow layouts other than <doctype>-edit to leverage this feature and promote consistency.

      Based on the HTML form validation specs, we should uniformize the static vs interactive validation, by considering the following approaches:
      1) always focusing the invalid element on the validate method of nuxeo-layout, thus making this an "interactive validation" method, which is exactly what reportValidity does.
      2) make the validate method of nuxeo-layout do static validation only, like what checkValidity does, and create a separate method to do interactive validation.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h