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

zhtml.Widget setDynamicProperty bug

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 8.0.3
    • ZK Client Engine
    • None

      zhtml.Widget method "setDynamicProperty" has a bug. If you are trying to set disabled / readOnly property to null (remove state) after having the property set to true, it does not get updated.
      I have fixed this issue in my project by overriding the method and changing

      case 'disabled':
      case 'readOnly':
      	n[nm] = 'true' == val;
      	break;
      

      to:

      case 'disabled':
      case 'readOnly':
      	if ('true' == val) {
      		n.setAttribute(nm, val);
      	} else {
      		n.removeAttribute(nm);
      	}
      	break;
      

      Bug is still present in 8.0.3.1 version.

            Unassigned Unassigned
            PhaNtoM PhaNtoM
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: