EnCiv / undebate-ssp

Undebate Self Service Portal- Web portal where election administrators of democratically run organizations create undebates for their candidates and voters
Other
6 stars 9 forks source link

Shouldn't have to click out to click done #215

Open ddfridley opened 1 year ago

ddfridley commented 1 year ago

IF you go to the configure election page, or the questions page, and enter data, after you enter data in the last field, you can't click on the Done button until you click outside of the input field to cause an unblur.

People are asking that the done button be active before you leave the input field - meaning update the done button status onChange rather than onBlur

But this might effect the database to - we write the data to the db onBlur.

But lets make it so the Done button is active as soon as the content of the input field is valid, without waiting for onBlur.

Make this change to all pages.

ddfridley commented 1 year ago

I suspect it may not be going to done after tabbing out of the last field because the button is inActive at the moment you tab out, and it doesn't become active until the onBlur is handled and the component rerenders.