There was no clear frontrunner by the time of the first primary elections , but Clinton , despite widespread accusations of an extramarital affair , eventually secured the required number of delegates as the other candidates dropped out .