Only change the collapse/expand state on the first child.

There are possibly children nested below that.
Merge pull request #1281 from edx/christina/toggle-expand

Only change the collapse/expand state on the first child.