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

Add focus() method to nuxeo-selectivity

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.1.x, 3.0.x
    • Component/s: Widgets

      Description

      nuxeo-input has a focus() method which can be used to focus the widget upon opening an Edit layout while nuxeo-selectivity does not. It is possible to manually focus the element by targeting its embedded input element as below:

      const input = selectivityComponent.s2.$.input.querySelector('input');
      input.focus();
      

      nuxeo-selectivity should have a focus() method that implements the above to match nuxeo-input's functionality.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: