As a quick workaround (because I couldn't figure out how to solve it properly) I've added a getChildComponents function that can be used to iterate over the children of a panel and toggle their enabled state manually. This is probably also a useful function to have for other things too.
for (x in myPanel.getChildComponents())
x.set("enabled", true);