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

Toggle Popup with onOpen doesn't close

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 9.5.1
    • 7.0.8, 8.5.0, 9.1.0
    • Components
    • Security Level: Jimmy
    • ZK 9.5.1 S1

      Steps to Reproduce

      open a popup with (type toggle) and close it by clicking the button again.

      https://zkfiddle.org/sample/34ft7km/1-Toggle-Popup-not-closing-simplified

      <zk>
        <button label="Button (toggle popup with onOpen)" popup="examplePopup, type=toggle"/>
        <button label="Button (toggle popup without onOpen)" popup="examplePopup2, type=toggle"/>
        <popup id="examplePopup" onOpen="">
          <label value="example popup"/>
        </popup>
        <popup id="examplePopup2">
          <label value="example popup"/>
        </popup>
      </zk>
      

      Current Result

      a popup with an onOpen-listener reopens immediately after clicking

      (closes on mouse-down and reopens again on mouse-up)

      Expected Result

      possibility to toggle close a popup (and handle onOpen events)

      Debug Information

      some more information provided in the forum
      https://forum.zkoss.org/question/112509/toggle-popup-not-closing/

      Workaround

            Leon03 Leon03
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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