Skip to content

fix: Cascader search bug when fieldNames existed#20720

Merged
afc163 merged 1 commit into
masterfrom
fix-cascader-search
Jan 7, 2020
Merged

fix: Cascader search bug when fieldNames existed#20720
afc163 merged 1 commit into
masterfrom
fix-cascader-search

Conversation

@afc163
Copy link
Copy Markdown
Member

@afc163 afc163 commented Jan 7, 2020

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / document update
  • Component style update
  • TypeScript definition update
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Other (about what?)

🔗 Related issue link

close #20619

💡 Background and solution

when label/value have same field name.

📝 Changelog

Language Changelog
🇺🇸 English Fix Cascader search bug when fieldNames is existed and label/value share same name.
🇨🇳 Chinese 修复 Cascader fieldNameslabelvalue 共用一个值时搜索功能失效的问题。

☑️ Self Check before Merge

  • 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

and label/value have same field name

close #20619
Copy link
Copy Markdown

@tests-checker tests-checker Bot left a comment

Choose a reason for hiding this comment

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

Could you please add tests to make sure this change works as expected?

@pr-triage pr-triage Bot removed the PR: unreviewed label Jan 7, 2020
@netlify
Copy link
Copy Markdown

netlify Bot commented Jan 7, 2020

Deploy preview for ant-design ready!

Built with commit 861f65d

https://deploy-preview-20720--ant-design.netlify.com

@codesandbox-ci
Copy link
Copy Markdown

codesandbox-ci Bot commented Jan 7, 2020

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 861f65d:

Sandbox Source
antd reproduction template Configuration

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 7, 2020

Codecov Report

Merging #20720 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #20720   +/-   ##
=======================================
  Coverage   97.47%   97.47%           
=======================================
  Files         296      296           
  Lines        6863     6863           
  Branches     1905     1905           
=======================================
  Hits         6690     6690           
  Misses        173      173
Impacted Files Coverage Δ
components/cascader/index.tsx 97.65% <100%> (ø) ⬆️

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 5398f24...861f65d. Read the comment docs.

@afc163 afc163 merged commit 0ceb6cc into master Jan 7, 2020
@afc163 afc163 deleted the fix-cascader-search branch January 7, 2020 05:41
afc163 added a commit that referenced this pull request Jan 8, 2020
and label/value have same field name

close #20619
@wangtiegang
Copy link
Copy Markdown

@afc163 这个问题在官方4.4.2文档示例中还是存在,我没弄明白哪个版本是正常的。。

@caodahui
Copy link
Copy Markdown

image
4.6.4的官网示例还是如此

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.

Cascader级联选择 使用 fieldNames 与 Search 功能 导致显示异常

3 participants