Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-5566

select an item in a searchbox produces a js error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 10.0.0
    • 10.0.0.FL
    • None

      Steps to Reproduce

          <searchbox model="@init(vm.model)" multiple="true" autoclose="true" viewModel="@id('vm')@init('org.zkoss.test.SearchboxVM')">
              <template name="model">
                  <label value="@load(each)"/>
              </template>
          </searchbox>
      
      1. run with 10.0.0.FL.20231005
      2. open browser developer tool
      3. select 1st item in a searchbox

      Current Result

      clientbind.wpd:3 Uncaught TypeError: n.selectedUuids.map is not a function
      at b._fireModelSelectionChange (clientbind.wpd:3:435586)
      at b.onSelect (clientbind.wpd:3:435340)
      at z.fireX (zk.wpd:5:1140070)
      at b.fireOnSelect (clientbind.wpd:3:439079)
      at e.close (zkmax.inp.wpd:3:41868)
      at e._doSelectItem (zkmax.inp.wpd:3:39329)
      at e._doItemClick (zkmax.inp.wpd:3:37478)
      at HTMLDivElement.dispatch (zk.wpd:5:156033)
      at s.handle (zk.wpd:5:154028)
      at e.invokeTask (clientbind.wpd:3:337564)

      the popup cannot be closed

      Expected Result

      no error
      can close the popup

            DevChu DevChu
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: