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

Drop event not fired on tabs in Firefox

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 8.0.0
    • Fix Version/s: None
    • Component/s: None
    • Environment:

      This problem occurs in Firefox but not in IE or Chrome.

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

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated: