Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Predefined Radio Options not working #16

Open
Daveiano opened this issue Aug 18, 2021 · 0 comments · May be fixed by #17
Open

Predefined Radio Options not working #16

Daveiano opened this issue Aug 18, 2021 · 0 comments · May be fixed by #17

Comments

@Daveiano
Copy link
Contributor

Follow up from #13

Predefined options are also not working for Radios. This is because there is an explicit check in WebformElementOptions:

if (is_string($value['#options']) && $value['plugin'] instanceof Select) {
    $value['#options'] = WebformOptions::getElementOptions($value);
}

should be

if (is_string($value['#options']) && ($value['plugin'] instanceof Select || $value['plugin'] instanceof Radios)) {
    $value['#options'] = WebformOptions::getElementOptions($value);
}
Daveiano added a commit to Daveiano/graphql_webform that referenced this issue Aug 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant