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

Checking the checkbox inside the groupbox should not trigger the onOpen event of Groupbox

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 6.5.4
    • 6.5.3
    • Components
    • None

      For example,

      <zk>
      <groupbox id="guarantorInfogb" mold="3d" open="true"  height="25px">
          <attribute name="onOpen"><![CDATA[
      alert("If you can see this, that is a bug!");
          ]]></attribute>
              <caption  label="Please check the checkbox, and nothing happen is correct!">
                  <hbox>
                      <checkbox onCheck=""/> 
                  </hbox>
              </caption>
      </groupbox>
      </zk>
      

      The workaround is to stop the event.
      For example,

      <checkbox xmlns:w="client" id="sameAsPatientCb" onCheck="">
      	<attribute w:name="doClick_">
      	function (evt) {
              	evt.stop({propagation: true});
                      this.$doClick_.apply(this, arguments);
              }
            	</attribute>
      </checkbox> 
      

            jumperchen jumperchen
            jumperchen jumperchen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: