fairvotereform / RankIt

https://rankit.vote
1 stars 2 forks source link

Hitting "Enter" while adding choices during poll creation deletes the first choice #118

Closed ggordn3r closed 4 years ago

ggordn3r commented 4 years ago

It used to be that when I hit "Enter" while typing poll choices, it would automatically create a new choice and place the cursor there. Now nothing happens if there are less than 2 choices, and the first choices is deleted if there are 3 or more.

Before I hit "Enter": image

After I hit "Enter": image

proggeramlug commented 4 years ago

@ggordn3r I'm only seeing this behavior (of adding choices) when hitten "tab", not "enter". Are you sure this was enter at any point?

I've seen the delete happen too, I can see to prevent that, but confirm that we want "enter" to be the one to create new choices.

ggordn3r commented 4 years ago

@proggeramlug You're right, I definitely used "Tab" in the past. Let's stick with that and just make enter not delete choices for now.

proggeramlug commented 4 years ago

Done