Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-1439

Fix required inputs within layout blocks

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.6
    • Fix Version/s: 3.0.9
    • Component/s: UI
    • Release Notes Summary:
      Required inputs works within layout blocks.
    • Backlog priority:
      550
    • Sprint:
      UI - 2021-13, UI Cooldown - 2021-13

      Description

      When using a layout block with required input, the user is able to click create and no validation is done on the required input

      Steps to Reproduce

      1. In Studio create a Layout Block that has Title as required
      2. Add this layout block to a document create layout
      3. Deploy changes and start Nuxeo
      4. Within Nuxeo, try to create a document of this type
      5. Notice that the Title input has the red star on it (indicating that it is required)
      6. Leave the Title blank and click Create

      Expected Behavior: User is taken to the Title input where it is outlined in red indicating that it is required. When not using a Layout Block, the behavior works correctly
      Actual Behavior: The UI freezes with a spinning circle and the following error appears in the console

      Uncaught (in promise) TypeError: Cannot read properties of null (reading 'replace')
          at HTMLElement._sanitizeName (main.bundle.js:1891)
          at HTMLElement._create (elements.bundle.js:323)
      

      Have to refresh the page to get out of this situation

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rdias Ricardo Dias
                Reporter:
                npeacock Nicole Peacock
                Participants:
                Reviewers:
                Gabriel Barata, Miguel Nixo, Samuel Fialho
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days, 4 hours, 5 minutes
                  2d 4h 5m