The state is inconsistent during animation.
expanded state doesn't change immediately.