-
-
Notifications
You must be signed in to change notification settings - Fork 46.9k
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
Dropdown component ignore its className prop #10325
Comments
Try this way: https://codesandbox.io/s/72ormv6l76 |
@afc163 Indeed, we have a component <Groups className="container" childClassName="item">
<Link>item1</Link>
<Button>item2</Button>
<Dropdown>{item3}</Dropdown>
</Groups> The |
You can create a PR to rc-trigger for this. |
@afc163 Sure, I'd be grad to do so. Thanks for your patience. |
Version
3.4.4
Environment
macOS Sierra 10.12.6, Chrome 65
Reproduction link
Steps to reproduce
Open your console and find that trigger container with
ant-dropdown-trigger
class. It may have another classmy-custom-dropdown
.What is expected?
className
my-custom-dropdown
should pass into trigger containerspan
as a prop, intuitively.What is actually happening?
className
lost in trigger container somehow.Related Code
className
passed through Dropdown, RcDropdown and finally lost in RcTrigger.The text was updated successfully, but these errors were encountered: