Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-99702

"Choose an option" may appear among the options of select field if multiple selections are enabled

    Details

      Description

      Description

      Forms with multiple selection field exhibits some inconsistent behavior with the "Choose option" text when it is attached to a data provider.

      Steps to reproduce

      1. Go to Site Admin menu > Content > Forms
      2. Click on ellipsis > data provider > Click on plus sign to Create Rest Data provider
        1. name : US Regions
        2. URL : http://localhost:8080/api/jsonws/region/get-regions/country-id/19/active/true
        3. Fill your current username and password
        4. Output : Label = Name, Path = name , Type = List
      3. Save
      4. Create a new form
      5. Add a Select from List Field to Page (Keep it NOT Required*) - Create List : From data provider - USRegions
      6. Go to Properties tab - select : Allow Multiple selections
      7. Save form
      8. Add form to page and follow behavior from the video attached.
      9. Click on the select field to choose options
      10. Tick one of the options
      11. Close the dropdown
      12. Click on the select field again

      Expected behavior

      1. Choose an Option shouldn't appear (as can be seen in 7.2 and master)

      Actual results

      1. Choose an Option appears
      2. Clicking on Choose an Option , removes that placeholder text

      Reproduced on

      7.1.x @ 6718d184c72cf60c07aa148159caa07ac1455ebf
      7.2.x @ cc645dc131fb2fe06fdb3b0c6b1c53429e1ded87
      master @ 8f3351359c0f27823a8798a2077a2b2a26e0dad0

        Attachments

        1. Fixed.PNG
          Fixed.PNG
          20 kB
        2. Fixed.PNG
          Fixed.PNG
          29 kB

          Activity

            People

            Assignee:
            harry.chai Harry Chai
            Reporter:
            cleydyr.albuquerque Cleydyr Albuquerque
            Participants of an Issue:
            Recent user:
            Clarissa Velazquez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 6 weeks, 4 days ago

                Packages

                Version Package
                7.1.10 DXP FP14
                7.1.X