Only allow one legend to be open at a time.