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

Cannot select an item in a listbox when its outer listbox is draggable

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 6.5.7, 8.0.0, 7.0.6.1
    • Fix Version/s: 7.0.7, 8.0.1
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
    • gh.sprint.customfield.default.name:
      ZK 7.0.7

      Description

      Steps to reproduce

      1. visit http://zkfiddle.org/sample/jiv1pc/43-Listbox-Drag-and-Drop-With-nested-Listbox with Firefox
      2. click the listbox in select mold

      Simplified reproducible case

      <zk>
      	<div draggable="true">
      		<listbox mold="select" >
      			<listitem label="fasfsaf" selected="true" />
      			<listitem label="fasfsaf2" />
      		</listbox>
      	</div>
      </zk>
      

      Actual result

      The drop-down list doesn't show up.

      Workaround

      	<script defer="true"><![CDATA[
      zk.Draggable.ignoreStop = function (target) { 		
      		return zk(target).isInput()
      				|| (!(zk.ie < 8) && jq.nodeName(target, 'select'))
      				|| jq.nodeName(target, 'option'); 	                              
      }
      	]]></script>
      

      For in zk.Draggable._mousedown(), there is code that stop the event:

      ...
      	if ((!(zk.ie < 11) || zk.ie9) && !zk.mobile) {
      			if (!zk.Draggable.ignoreStop(target)) 
      				devt.stop();
      ...
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              wenninghsu wenninghsu
              Reporter:
              hawk hawk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 6 hours
                  6h