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

Drop event not fired on tabs in Firefox

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 8.0.0
    • None
    • This problem occurs in Firefox but not in IE or Chrome.

      It happens with ZK 8.0.0 (didn't test an other version).

      When drag'n dropping tabs, the drop event is correctly handled by Internet Explorer and Chrome, but not in Firefox.

      Test case:

      <window>
      	<tabbox>
      		<tabs>
      			<tab label="AAA" closable="true" draggable="true" droppable="true" onDrop="move(event.dragged)"/>
      			<tab label="BBB" closable="true" draggable="true" droppable="true" onDrop="move(event.dragged)"/>
      			<tab label="CCC" closable="true" draggable="true" droppable="true" onDrop="move(event.dragged)"/>
      		</tabs>
      		<tabpanels>
      			<tabpanel>
      				<vbox>
      					<label>AAA</label>
      				</vbox>
      			</tabpanel>
      			<tabpanel>
      				<vbox>
      					<label>BBB</label>
      				</vbox>
      			</tabpanel>
      			<tabpanel>
      				<vbox>
      					<label>CCC</label>
      				</vbox>
      			</tabpanel>
      		</tabpanels>
      	</tabbox>
      	<zscript>
              void move(Component dragged) {
                  System.out.println("Hello");
              }
          </zscript>
      </window>
      

      If you drop a tab on an other one, there should be a "Hello" in the console. It's the case in IE and Chrome, but not in Friefox.

            Unassigned Unassigned
            MathieuPiette MathieuPiette
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: