Skip to content

Commit 617ec32

Browse files
hansonrhansonr
authored andcommitted
fixing JSComboBox not disabling
1 parent 1af085f commit 617ec32

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sources/net.sf.j2s.java.core/src/swingjs/plaf/JSComboBoxUI.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ public DOMNode updateDOMNode() {
4343
addJQueryFocusCallbacks();
4444
}
4545
populateList();
46+
if (comboBox.isEnabled())
47+
domNode.removeAttribute("disabled");
48+
else
49+
DOMNode.setAttr(domNode, "disabled", "true");
4650
return domNode;
4751
}
4852

0 commit comments

Comments
 (0)