AUI-1196 Change `expanded` attribute to write once