AUSTIN, Texas — A lawyer for the Texas Democratic Party said they're dropping a lawsuit that sought to keep Republican Rep. Blake Farenthold on the 2018 ballot even though he's retiring.

Attorney Chad Dunn said Wednesday that Democrats made the decision after a federal judge denied their request for an immediate injunction.

RELATED | Rep. Farenthold not seeking re-election amid sexual harassment allegations

Farenthold announced last week he wouldn't seek re-election amid allegations of sexual harassment. Democrats argued that since Farenthold missed the deadline to withdraw his candidacy, his name should stay on the ballot. 

Fellow Republicans urged Farenthold not to run again. He denied 3-year-old accusations that he'd subjected a former aide to sexually suggestive comments.

The Texas GOP said they're keeping Farenthold off the ballot after state elections officials signaled they couldn't force his name to remain. 

View the Texas Democratic Party’s lawsuit here.