Describe the bug
On line 89 of the FormField.vue file there is a if(!this.selectedOption) check. This does not accept 0 int values (so false).
This means that you can't have true, false radio options like Radio::make()->options([true => 'something', false = 'something else']). A fix for this would be:
Describe the bug On line 89 of the FormField.vue file there is a if(!this.selectedOption) check. This does not accept 0 int values (so false). This means that you can't have true, false radio options like Radio::make()->options([true => 'something', false = 'something else']). A fix for this would be:
if (this.selectedOption === null || this.selectedOption === undefined) { this.selectedOption = firstValue; }
Or even shorter: this.selectedOption ??= firstValue;
In the index page you see:
Current situation:
Expected situation: