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

Groupbox closable != true still update the open status when clicking the caption/title

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.0.3
    • 8.0.2
    • None
    • Security Level: Jimmy
    • None
    • ZK 8.0.3 S4

      The groupbox.setOpen() method will still update the groupbox._open value, even if the UI action is stopped

      Reproduce with:
      click the 2nd box caption/title, then the rerender button.

      With invalidate: values are re-sent.
      With rerender: the local widget value is used and the groupbox is rerendered closed.

      <zk xmlns:w="client">
       <div id="mydiv">
        <groupbox id="gb1" closable="false">
         <caption>caption</caption>
         content 1
        </groupbox>
        <groupbox title="title" id="gb2" closable="false">
         content 2
        </groupbox>
        <button onClick="gb1.invalidate();" label="gb1 invalidate"/>
        <button w:onClick="zk.$('$gb2').rerender();" label="gb2 rerender"/>
       </div>
      </zk>
      

            wenninghsu wenninghsu
            MDuchemin MDuchemin
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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