-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Umbraco radio buttons not checked by default (on load) #9683
Comments
@zspasojevic strange anyone hasn't noticed this. Yeah, it seems this PR #6797 added |
@zspasojevic do you use the Also ensure the component has a end-closing tag end not is self-closing (void element). |
Hi @bjarnef. No, we're not using the label-key, we don't have a need for dictionary/localization. This is a code snippet: |
Okay, the missing However I think the issue here is that you set You can see this example from core, where it is used for relation types: You should probably either remove the |
The localizationService problem is fixed with PR #9685 and I've cherry picked this for all upcoming patch releases of 8.6 upwards. Additionally, this fix will be available in the upcoming v8.11.0 |
@nul800sebastiaan v8.11.0-RC is already out 😁 .. but great to include this in final release of v8.11.0 👍 |
duh.. too eagerly copy-pasted 🙈 |
We're implementing some custom cms section and trying to use umbraco radio buttons there.
The default button selection is not working on page load despite the fact that is has model="true" set properly.
Umbraco version
Seems like all 8+ versions including the current
Reproduction
Steps to reproduce
Create some custom section in CMS that has a radio button with multiple options in it and set one of them to be selected by default on page load.
Expected result
To have an option selected by default on page load
Actual result
None of the radio button options is selected on page load.
We had a look at some of the source files since with umbraco checkboxes this functionality works. We noticed the differences with the localisationService not being passed in inside onLoad() function for radio buttons. Could this be what's causing it to fail?
Radio Button
Checkbox
The text was updated successfully, but these errors were encountered: