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

Disabled Combobox with autodrop still open in IE 11

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.0.3
    • None
    • None
    • Security Level: Jimmy
    • None
    • IE 11, reproduced with IE 11.494.105860 - 11.0.33. Doesn't happen on chrome, firefox

    • ZK 8.0.3 S8

      steps to reproduce

      http://zkfiddle.org/sample/2e9qh6b/1-Combobox-Autodrop-IE11
      run fiddle
      click on the combobox input field
      type any letter (for example "a")

      actual result

      The combobox drop down menu is opened

      expected result

      The combobox drop down menu should not open

      debug info

      It seem that IE 11 still give focus and key events on disabled input elements

      workaround

      <script>
      		<![CDATA[
      			zk.afterLoad('zul.inp', function() {
      			    var _xCombobox = {};
      			    zk.override(zul.inp.Combobox.prototype, _xCombobox, {
      			    	doKeyDown_: function (evt) {
      			    		if(!this.isDisabled())
      			    			_xCombobox.doKeyDown_.apply(this,arguments);
      					}
      			    });
      			});
      		]]>
      	</script>
      

            SEFI SEFI
            MDuchemin MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: