Members of Britain's Parliament delivered a sharp warning to the country's next prime minister: They will not allow him to pursue a no-deal Brexit without a fight.

In a dramatic result Tuesday evening, MPs narrowly passed a measure aimed at stopping the U.K.'s future leader forcing the country out of the European Union without an agreement, against their wishes. The result sets up another potential crisis in British politics in the weeks and months ahead as the U.K.'s leaders grapple with the intractable tensions of Brexit.

Minutes after the vote, the two men vying to become prime minister clashed on television over the same issue that dominated the debate in the House of Commons: whether they would be willing to close down Parliament in order to deliver Brexit — with or without a deal — by the deadline of Oct. 31.