-
Notifications
You must be signed in to change notification settings - Fork 14
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
fix(sbb-radio-button-group): sync radios synchronously #3323
Conversation
it('should respect disabled radio in value getter', async () => { | ||
const radio = radios[0]; | ||
radio.checked = true; | ||
radio.disabled = true; | ||
await waitForLitRender(element); | ||
|
||
expect(element.value).to.be.null; | ||
expect(element.value).to.be.equal('Value one'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think this is the desired behavior? Natively, the FormData would be empty in this case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it the same? Here it is the group while native there is no group?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My doubt is, should the group.value
consider disabled radios?
In this case, both the native and our implementation would return an empty FormData (as if nothing were selected).
Meanwhile the sbb-radio-group
returns Value one
. I feel it is inconsistent :/
Closes #3316