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

树组件的nzHideUnMatched属性存在bug #3739

Closed
SONASIDANTE opened this issue Jul 5, 2019 · 1 comment · Fixed by #3748
Closed

树组件的nzHideUnMatched属性存在bug #3739

SONASIDANTE opened this issue Jul 5, 2019 · 1 comment · Fixed by #3748

Comments

@SONASIDANTE
Copy link

Reproduction link

https://stackblitz.com/edit/angular-43rgfp?file=src/app/app.component.ts

Steps to reproduce

关闭未匹配搜索节点即可

What is expected?

只是收起

What is actually happening?

没了

Environment Info
ng-zorro-antd 8.0.2
Browser 无关

get displayStyle(): string {
// to hide unmatched nodes
return this.nzSearchValue && this.nzHideUnMatched && !this.nzTreeNode.isMatched && !this.nzTreeNode.isExpanded
? 'none'
: '';
}

@zorro-bot
Copy link

zorro-bot bot commented Jul 5, 2019

Translation of this issue:

There is a bug in the nzHideUnMatched property of the tree component

Reproduction link

[https://stackblitz.com/edit/angular-43rgfp?file=src/app/app.component.ts](https://stackblitz.com/edit/angular-43rgfp?file=src/app/app. Component.ts)

Steps to reproduce

Close the unmatched search node

What is expected?

Just put away

What is actually happening?

Gone

Environment Info
ng-zorro-antd 8.0.2
Browser Unrelated

  Get displayStyle(): string {
    // to hide unmatched nodes
    Return this.nzSearchValue && this.nzHideUnMatched && !this.nzTreeNode.isMatched && !this.nzTreeNode.isExpanded
      ? 'none'
      : '';
  }

wzhudev pushed a commit that referenced this issue Jul 19, 2019
close #3739

* fix: unexpected disappear of tree-node

* test(module:nz-tree): update case

* perf: add prop shouldHide to nzTreeNode

* chore: rename prop shouldHide to canHide

* fix: check match status of upstream and downstream tree node

* test(module:nz-tree): update fit to it

* chore: remove useless access modifier

* test: update cases

* test: combine two cases
Ricbet pushed a commit to Ricbet/ng-zorro-antd that referenced this issue Apr 9, 2020
close NG-ZORRO#3739

* fix: unexpected disappear of tree-node

* test(module:nz-tree): update case

* perf: add prop shouldHide to nzTreeNode

* chore: rename prop shouldHide to canHide

* fix: check match status of upstream and downstream tree node

* test(module:nz-tree): update fit to it

* chore: remove useless access modifier

* test: update cases

* test: combine two cases
hsuanxyz pushed a commit to hsuanxyz/ng-zorro-antd that referenced this issue Aug 5, 2020
close NG-ZORRO#3739

* fix: unexpected disappear of tree-node

* test(module:nz-tree): update case

* perf: add prop shouldHide to nzTreeNode

* chore: rename prop shouldHide to canHide

* fix: check match status of upstream and downstream tree node

* test(module:nz-tree): update fit to it

* chore: remove useless access modifier

* test: update cases

* test: combine two cases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants