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

There are possibly children nested below that.

@talbs Please review.