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

cascader / searchbox do no clean popup on unbind

XMLWordPrintable

      Steps to Reproduce

      https://zkfiddle.org/sample/2tt5m0h/1-Another-new-ZK-fiddle

       

      Click button to start countdown before invalidate

      While countdown is ongoing, open popup in cascader or in searchbox

      wait for invalidate to happen

      Current Result

      popup stays open, no behavior on popup, cannot close

      Expected Result

      popup is closed during unbind

      Debug Information

       

      Workaround

       

      	<script><![CDATA[
      	zk.afterLoad("zkmax.inp", function () {
      	    var _xCascader = {};
      	    zk.override(zkmax.inp.Cascader.prototype, _xCascader, {
      	        unbind_: function() {
      	        	if(this.isOpen()){
      	        		this.close();
      	        	}
      				var result = _xCascader.unbind_.apply(this, arguments);
      				return result;
      	        }
      	     });
      	    var _xSearchbox = {};
      	    zk.override(zkmax.inp.Searchbox.prototype, _xSearchbox, {
      	        unbind_: function() {
      	        	if(this.isOpen()){
      	        		this.close();
      	        	}
      				var result = _xSearchbox.unbind_.apply(this, arguments);
      				return result;
      	        }
      	     });
      	});
      ]]></script>
      

            DevChu DevChu
            MDuchemin MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: