More U.S. voters would pick a Republican congressional candidate than a Democrat, making it the first time in three months that the GOP had the lead in the generic ballot, according to a Morning Consult/Politico poll released Wednesday.

The Feb. 8-12 survey found 39 percent of registered voters would pick a Republican candidate compared with the 38 percent who said they would vote for a Democrat.

In mid-December, Democrats held a 10-point advantage over Republicans in the same poll, but President Trump's party has since closed that gap, although the narrow lead is still within the margin of error.

Twenty-three percent of voters said they were undecided in which political party they would support if the election was held now.

Other polls have showed Democrats with a larger lead over Republicans in this generic match-up. The current RealClearPolitics average of polls has Democrats with a 7-point advantage over Republicans, nearly half of the 13-point lead they had earlier last year.

The online survey was conducted with 1,985 registered voters nationwide and had a 2 percentage point margin of error.