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

RadioGroup ignores setValue in readOnly-mode #458

Open
schube opened this issue Aug 14, 2020 · 1 comment
Open

RadioGroup ignores setValue in readOnly-mode #458

schube opened this issue Aug 14, 2020 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@schube
Copy link
Contributor

schube commented Aug 14, 2020

Describe the bug
I have a form with TextBoxes and RadioGroups.
All elements are set to read-only (.setReadOnly(true))

Now, when a TextBox t gets a value set programmatically with .setValue("new Value"), the value is displayed and can also be read with .getValue()

But on a RadioGroup r, when the value set programmatically with .setValue("new Value"), the value is NOT displayed and .getValue()returns null.

Workaround:

  1. Set RadioGroup to readOnly(false)
  2. Set value on RadioGroup
  3. Set RadioGroup to readOnly(true)

Expected behavior
Same as with textboxes

Desktop (please complete the following information):

  • OS: Mac
  • Browser Chrome
  • Version latest
@vegegoku vegegoku self-assigned this Aug 14, 2020
@vegegoku vegegoku added the bug Something isn't working label Aug 14, 2020
@vegegoku vegegoku added this to the 1.0 milestone Aug 14, 2020
@vegegoku
Copy link
Member

@schube thank you for reporting, i checking the code i dont see a check for readonly when set the field value, the bug could somewhere else, can you please share how you initialize the RadioGroup and its Radios and how you then set the value.
thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants