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

Toggle Popup with onOpen doesn't close

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 7.0.8, 8.5.0, 9.1.0
    • Fix Version/s: 9.5.1
    • Component/s: Components
    • Security Level: Jimmy
    • Labels:
    • gh.sprint.customfield.default.name:
      ZK 9.5.1 S1

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

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