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

fix: Cascader className duplicate #27187

Merged

Conversation

huntdream
Copy link
Contributor

[中文版模板 / Chinese template]

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / documentation update
  • Demo update
  • Component style update
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Internationalization
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Other (about what?)

🔗 Related issue link

close #27168

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English Fix Cascader className duplicate
🇨🇳 Chinese 修复Cascader 类名重复

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

@ant-design-bot
Copy link
Contributor

ant-design-bot commented Oct 16, 2020

@ant-design-bot
Copy link
Contributor

ant-design-bot commented Oct 16, 2020

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit eea9df1:

Sandbox Source
antd reproduction template Configuration

@codecov
Copy link

codecov bot commented Oct 16, 2020

Codecov Report

Merging #27187 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master    #27187   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          389       389           
  Lines         7392      7392           
  Branches      2021      2070   +49     
=========================================
  Hits          7392      7392           
Impacted Files Coverage Δ
components/cascader/index.tsx 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 77e7ece...eea9df1. Read the comment docs.

'expandIcon',
'loadingIcon',
'bordered',
'className',
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not omit it from the input?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

考虑过这个,本来没必要从input里面加,但是偏偏加了,我觉得可能是有意这样做的,没考虑太多,所以就直接从props里面omit了

@afc163 afc163 merged commit b4e748c into ant-design:master Oct 16, 2020
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.

set className in cascader, there will tow classname the same in dom
4 participants