Lawmakers question legality of ranked-choice voting proposal