Lawmakers in Connecticut's House of Representatives passed a measure Thursday that would change the way the state's electoral college votes for president.
The bill, which passed largely along party lines, would give the state's electoral votes to whichever presidential candidate won the national popular vote — but there's a catch.
If the bill becomes law, it will only go into effect if enough other states sign onto the interstate compact.
Ten states have joined so far. Together, they have 165 electoral votes. The compact needs 270 electoral votes to go into effect.
The vote came the same day President Donald Trump told "Fox & Friends" he would like to do away with the electoral college in favor of the popular vote. Trump won the 2016 electoral vote but lost the popular vote.
Connecticut's bill still has to go to the state's senate for approval. If it passes there, it'll head to the governor's desk to be signed.