Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-1235

Dropdown with custom_form: true and multiple: true throws error

    XMLWordPrintable

Details

    • Ibexa Open Source

    Description

      Steps to reproduce:

      Create html widget:

      ```
       

      {% set source %}

      <selectclass="ibexa-input">
      <optionvalue="DE">DE</option>
      <optionvalue="US">US</option>
      <optionvalue="NO">NO</option>
      <optionvalue="PL">PL</option>
      </select>

      {% endset %}

      {% set choices = [

      { value: "DE", label: "DE" }

      ,

      { value: "US", label: "US" }

      ,

      { value: "NO", label: "NO" }

      ,

      { value: "PL", label: "PL" }

      ] %}
      {% include '@ezdesign/ui/component/dropdown.html.twig' with

      { source: source, choices: choices, multiple: true, custom_form: true, }

      %}
      ```
      Expected behaviour:
      Everything works
      Actual behaviour:
      Dropdown throws error

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              michal.grabowski@ibexa.co Michał Grabowski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: