Expand correctly using trigger(click) instead.