eureka2 / G6K

Generator of calculation simulator (calculator)
MIT License
20 stars 19 forks source link

"Required" and "Required if visible" conditions on fields seem not be applied #7

Closed opportus closed 6 years ago

opportus commented 6 years ago

Hello Jacques,

I'm setting up a "CoutCertificatImmatriculation" simulator for a client.

I believe the "Required" and "Required if visible" conditions on panel's fields are not applied.

To reproduce the issue:

  1. Go on https://www.service-public.fr/simulateur/calcul/cout-certificat-immatriculation
  2. Select the démarche: "Première immatriculation en France d'un véhicule"
  3. Click the "Calcul" action button

I'd expect to get error messages and not be able to submit the form...

eureka2 commented 6 years ago

Hello,

Ok, seen! It works with Firefox but not with Chrome since I use "event.originalEvent.explicitOriginalTarget.name" to find the name of the button that submits the form.

This is now fixed.

Thank you for finding this bug.

Best regards.

opportus commented 6 years ago

I confirm this fixes the issue for me on Chrome Version 67.0.3396.99.

Thanks Jacques!

Best regards.