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

CheckboxGroup: prefixCls prop not passed to Checkbox component when using options #9950

dalwlad opened this issue Apr 5, 2018 · 0 comments


Copy link

@dalwlad dalwlad commented Apr 5, 2018

  • I have searched the issues of this repository and believe that this is not a duplicate.




Window 7 x64, Google Chrome Version 65.0.3325.181 (Official Build) (64-bit)

Reproduction link

Edit on CodeSandbox

Steps to reproduce

When passing a custom value for the prefixCls on the Checkbox.Group component, the custom prefix class is used by the Checkbox.Group component but it's not passed down to the child Checkbox component, when using the options shorthand.

Steps to reproduce:

  1. Do not import antd css bundle
  2. Import the Checkbox component on demand
  3. Provide a custom prefixCls on the checkbox group (e.g. 'my-class')
  4. Use the options prop for the group
  5. When inspecting the resulted html, the label element will have the following class my-class-group-item ant-checkbox-wrapper

What is expected?

The label element should have my-class-group-item my-class-wrapper when providing a custom prefixCls in combination with options prop on the Checkbox.Group

What is actually happening?

prefixCls is not passed to the child Checkbox component when using options prop

yesmeck added a commit that referenced this issue Apr 11, 2018
yesmeck added a commit that referenced this issue Apr 22, 2018
afc163 added a commit that referenced this issue Apr 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants