Sen. Joe Donnelly Joseph (Joe) Simon DonnellyTrump meets with potential Supreme Court pick Amy Coney Barrett at White House Names to watch as Trump picks Ginsburg replacement on Supreme Court Momentum growing among Republicans for Supreme Court vote before Election Day MORE, the vulnerable Democratic candidate running for reelection in Indiana, said he was open to looking at legislation that would end birthright citizenship during a Tuesday debate.

"I’m the only person on this stage who voted three times for a border wall. I voted against sanctuary cities. I’ve stood for secure borders with John McCain John Sidney McCainCindy McCain endorses Biden: He's only candidate 'who stands up for our values' Biden says Cindy McCain will endorse him Biden's six best bets in 2016 Trump states MORE when in 2013, we passed legislation that would have provided an additional 20,000 border agents to the border," he said when asked about birthright citizenship.

"I heard you say that [Sen.] Lindsey Graham Lindsey Olin GrahamSenate GOP aims to confirm Trump court pick by Oct. 29: report The Hill's Campaign Report: GOP set to ask SCOTUS to limit mail-in voting Senate GOP sees early Supreme Court vote as political booster shot MORE [R-S.C.] is going to put legislation forward" to rescind the law, Donnelly continued. "We have to take a look at that legislation."

ADVERTISEMENT

"I’d want to see that legislation, make sure it was constitutional and review it first," he added.

Donnelly's Republican opponent Mike Braun also declined to commit his support to one side of the issue, but said that "if Lindsey Graham’s introducing it, it will be something I take a look at."

President Trump Donald John TrumpOmar fires back at Trump over rally remarks: 'This is my country' Pelosi: Trump hurrying to fill SCOTUS seat so he can repeal ObamaCare Trump mocks Biden appearance, mask use ahead of first debate MORE made his intentions to use an executive order to end birthright citizenship known in an interview aired Tuesday. Legal experts quickly almost unanimously said that such a move would be unconstitutional and challenged in court.

Following the debate, Donnelly commented on the issue to The Hill.

"At tonight’s debate, there was a question about birthright citizenship," Donnelly said in a statement. "The 14th Amendment is clear. What’s also clear is that our immigration system is broken. As I have done in the past, I will work with both parties to find a solution that secures our borders and fixes our broken immigration laws."

Senate Judiciary Committee Chairman Chuck Grassley Charles (Chuck) Ernest GrassleyCollins says she will vote 'no' on Supreme Court nominee before election The Hill's Morning Report - Sponsored by Facebook - Trump, GOP allies prepare for SCOTUS nomination this week Gardner signals support for taking up Supreme Court nominee this year MORE (R-Iowa) said Tuesday that changing birthright citizenship would take a constitutional amendment.

Recent polling of the Indiana Senate race has Braun with a slim lead within the margin of error ahead of the Nov. 6 election.

Updated Wednesday at 8:18 a.m.