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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 7.0.7, 8.0.1
    • 6.5.7, 8.0.0, 7.0.6.1
    • None
    • Security Level: Jimmy
    • ZK 7.0.7

      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();
      ...
      }
      

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

              Created:
              Updated:
              Resolved:

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