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

listbox select mold produces js error in a mobile browser

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 9.6.4
    • 9.6.2
    • None
    • Security Level: Jimmy
    • None

      Steps to Reproduce

          <listbox mold="select">
              <listgroup label="2018"/>
              <listitem label="2018 Q1"/>
              <listitem label="2018 Q2"/>
              <listitem label="2018 Q3"/>
              <listitem label="2018 Q4"/>
              <listgroup label="2017"/>
              <listitem label="2017 Q1"/>
              <listitem label="2017 Q2"/>
              <listitem label="2017 Q3"/>
              <listitem label="2017 Q4"/>
          </listbox>
      

      1. visit the page with Chrome > device toolbar > iPhone (any)

      Current Result

      mold default not found in zul.sel.Optgroup

      Expected Result

      no error

      Debug Information

      • desktop browsers don't have this bug

      Workaround

      zk-5251.js

      Root cause

      widget-touch.js

      zk.override(zk.Widget.prototype, _xWidget, {
      	setMold: zk.$void // not support different mold for tablet devices
      });
      

        1. error.jpg
          error.jpg
          17 kB
        2. zk-5251.js
          0.3 kB

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

              Created:
              Updated:
              Resolved: