DEV Community

Discussion on: Feedback on this new DEV feature?

Collapse
 
ben profile image
Ben Halpern

This makes sense. It probably shouldn't be possible, though, to change your vote once you've seen results. Twitter allows you to click a button and then click submit which limits the surface area for misclicks. That is probably the expected behavior.

I found getting things just right to be outside of the scope of my weekend hack. I hope others will jump in and improve on this whole feature. πŸ˜„

Collapse
 
nicolus profile image
Nicolas Bailly

Twitter allows you to click a button and then click submit which limits the surface area for misclicks. That is probably the expected behavior.

In any case, the expected behavior of a Radio Button is never to do something irreversible.

If you want to save one click you could probably replace those with a "vote" button or something, then people would understand that clicking would cast their vote.

But radio buttons ? The whole point of a radio button (as anyone who spent time playing with their dad's old stereo as a kid would know) is to play with them and see them pop out when you press another button. If you cast my vote when I press one you completely remove my ability to play with them and enjoy them.

So yeah, a "submit" button would probably be better, especially since it would allow you to have multiple answer polls down the line without rethinking the UI.

Thread Thread
 
ben profile image
Ben Halpern

Yeah, this is valuable feedback.

Collapse
 
mazentouati profile image
Mazen Touati

Indeed, Twitter's model may be convenient.

Collapse
 
pablomayobre profile image
Pablo Ariel Mayobre

Sometimes it doesn't really make a difference, so it could be optional, and the creator of the poll chooses if the vote can be changed or not

Collapse
 
andrewbrooks profile image
Andrew Brooks πŸ‘¨β€πŸ’»

Another idea maybe is a quick countdown splash with an undo button for like 5 seconds that then changes to the results if undo is not clicked.πŸ€”