rcpch / rcpch-audit-engine

Epilepsy12 Audit Platform
https://e12.rcpch.ac.uk/
GNU Affero General Public License v3.0
5 stars 5 forks source link

[Organisational Audit] Form gets stuck on Firefox if you type letters into a number field #1072

Open mbarton opened 1 month ago

mbarton commented 1 month ago

This is because the HTML5 client side validation won't submit the form if the field is an invalid number. It has the annoying effect though that you can enter something invalid in a field that's not currently visible and then the answer to another question won't submit.

I'm not sure how to fix this short of submitting each answer individually

eatyourpeas commented 1 month ago

Check htmx scope and out-of-band

On Fri, 11 Oct 2024, 16:36 Michael Barton, @.***> wrote:

This is because the HTML5 client side validation won't submit the form if the field is an invalid number. It has the annoying effect though that you can enter something invalid in a field that's not currently visible and then the answer to another question won't submit.

I'm not sure how to fix this short of submitting each answer individually

— Reply to this email directly, view it on GitHub https://github.com/rcpch/rcpch-audit-engine/issues/1072, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAICOV4LCRLZKAN4U5NI43TZ27WAPAVCNFSM6AAAAABPZFKQIWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU4DCNRWG4YTINY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

mbarton commented 1 month ago

I think this could be a Firefox specific issue - when I try in Chrome it won't let me type anything that isn't a number into the fields