Details

      Description

      Setting autoFocus="true" in a taglib in a form may not focus the form.

      For example, open Web Content Administration > Add New Basic Web Content

      The title should be focused.

      More research:

      • The Code in the taglibs is fine, if actually prints this:
        Liferay.Util.focusFormField('#_com_liferay_journal_web_portlet_JournalPortlet_title')

      The problem might be that this code is executed before the form is fully loaded.. because if I execute it manually afterwards, then the field is focused properly.

      Steps to reproduce it:

      1. Go to Web Content Administration
      2. Go to add new Article
      3. the title field should be focused

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              steven.gao Steven Gao (Inactive)
              Reporter:
              julio.camarero Julio Camarero (Inactive)
              Participants of an Issue:
              Recent user:
              Samuel Kong
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 33 weeks, 1 day ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.1 CE GA2