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

[RFR] Migrate RadioButtonGroupInput to use useInput #3538

Merged
merged 4 commits into from
Aug 20, 2019

Conversation

djhi
Copy link
Contributor

@djhi djhi commented Aug 19, 2019

No description provided.

@djhi djhi added this to the 3.0.0 milestone Aug 19, 2019
expect(input2.type).toBe('radio');
expect(input2.name).toBe('foo');
expect(input2.name).toBe('type');
expect(input2.checked).toBeFalsy();
});

it('should use the input parameter value as the initial input value', () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you've completely changed the tes implementation, so the test title no longer corresponds to the implementation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really get that comment. initialValues provides the initial input value and we check that is indeed applied to the underlying input

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we no longer use the 'input parameter value', as the test description says

djhi and others added 2 commits August 19, 2019 14:52
Co-Authored-By: Francois Zaninotto <francois@marmelab.com>
@djhi djhi force-pushed the radiobuttongroupinput-useinput branch from bcef715 to 0f7ba10 Compare August 19, 2019 14:37
@fzaninotto fzaninotto merged commit f8a8b9f into next Aug 20, 2019
@fzaninotto fzaninotto deleted the radiobuttongroupinput-useinput branch August 20, 2019 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants