Open pjackson28 opened 6 years ago
Describe the bug Following up @pjackson28 scenario, we have noticed the same issue when using the back button in Safari mobile and desktop.
To Reproduce
Expected behavior The expectation would be that, even if the selection state is preserve while navigating from page to page, the selection should change if a different radio button is selected.
Screenshots https://youtu.be/c0VOzCxVTHM?t=1374
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context cc @jmealing
Scenario:
Problem: Field Flow strips all name attributes off of Field Flow fields which causes a problem if you click previous to return to a previous section. When you do that, the radio buttons will no longer have the name attribute so will no longer behave in a form group (so all can be selected at the same time). This is caused by https://github.com/wet-boew/GCWeb/blob/master/src/plugins/fieldflow/fieldflow.js#L1098
Workaround: I can get around this by listening for the submit event on the body element rather than document and returning false so the event never reaches Field Flow.
Suggested solution: Either no longer remove the name attribute on submit, or provide an option in Field Flow to disable that functionality.