Bill Ponn, left, greets Manassas Mayor Hal Parrish (R) after casting his ballot for him for state senate at Weems Elementary School in Manassas, Va., in 2015. (Fenit Nirappil/The Washington Post)

Manassas Mayor Harry J. “Hal” Parrish II (R) has dropped his primary bid for the legislative seat held by Virginia House Del. Jackson H. Miller (R), according to Manassas voter registrar Susan Reed.

Parrish’s name will remain on the June 13 ballots because they are already printed.

Miller, who is majority whip in the legislature, lost a Tuesday special election for Prince William County Circuit Court Clerk to Democrat Jacqueline Smith. If he had won, he would have had to resign from the legislature.

Democrats hailed the result of the obscure, low-turnout contest as a sign of widespread voter anger at the ascendance of President Trump and other Republicans in November.

Parrish, whose father, Harry J. Parrish, held the delegate seat from 1982 until 2006, said he never intended to challenge Miller if the veteran lawmaker ran for reelection, and always intended to drop out of the legislative race if Miller lost his bid for the clerk’s office.

Miller faces no other opposition in the Republican House primary. His Democratic opponent in the November general election will be Lee Carter.

Parrish raised no campaign funds from others during his brief candidacy, he said. The mayor lost a 2015 race for state senate to Democrat Jeremy S. McPike. He was reelected to a four-year mayoral term in the fall.