-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.0.x
-
Fix Version/s: 2.0.x
-
Component/s: Form - JS (deprecated)
-
Labels:None
-
Git Pull Request:
Current behavior:
The form-builder creates a multiple-choice input (radio-buttons) without any predefined value (see attached screenshot).
Expected behavior:
The form-builder creates a multiple-choice input (radio-buttons) with the first option (value 1) selected by default.
According to the W3C specification:
At all times, exactly one of the radio buttons in a set is checked. If none of the <INPUT> elements of a set of radio buttons specifies 'CHECKED', then the user agent must check the first radio button of the set initially.
Since user agent behavior differs, authors should ensure that in each set of radio buttons that one is initially "on".