Do not trigger minimize if target element is an anchor tag.