DiSSCo / ELViS

European Loans and Visits System
https://elvis.dissco.eu/
6 stars 2 forks source link

Radiobuttons selection problem in TA request form #200

Closed jgrieb closed 3 years ago

jgrieb commented 3 years ago

Description

For any radiobutton in the TA request form, if the selected value is changed repeatedly (Yes->No->Yes), the 'No' option does not get unselected anymore and the radiobutton shows both values as selected (see screenshot below)

Steps to reproduce the issue

  1. Create a new TA form
  2. For any radiobutton, first select 'Yes', then select 'No', then 'Yes' again

What's the expected result?

A radiobutton should always only allow one option to be selected

What's the actual result?

The radiobutton shows that both 'Yes' and 'No' are selected, and I cannot change my answer to 'No' anymore. However, if I navigate to a different website and return to the TA requests it is displayed correctly again, so only the latest selected option was saved in the DB.

Additional details / screenshot

ta_form_radiobutton_problem Tested with Firefox 85.0.1

philippeloret commented 3 years ago

I had the same problem.

Capture d’écran de 2021-02-19 10-17-14

cannedit commented 3 years ago

This has been taken care of, please test.

jgrieb commented 3 years ago

Tested: problem does not occur anymore