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(module:table): fix sortChange with dynamic columns (#3603) #3605

Merged
merged 1 commit into from
Jun 19, 2019
Merged

fix(module:table): fix sortChange with dynamic columns (#3603) #3605

merged 1 commit into from
Jun 19, 2019

Conversation

AngusFu
Copy link
Contributor

@AngusFu AngusFu commented Jun 19, 2019

sortChange() called multiple times after columns changed

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[x ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Application (the showcase website) / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: #3603

What is the new behavior?

Fixes #3603

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

sortChange() called multiple times after columns changed
@netlify
Copy link

netlify bot commented Jun 19, 2019

Deploy preview for ng-zorro-master ready!

Built with commit bbc48fa

https://deploy-preview-3605--ng-zorro-master.netlify.com

@codecov
Copy link

codecov bot commented Jun 19, 2019

Codecov Report

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

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3605   +/-   ##
=======================================
  Coverage   95.74%   95.74%           
=======================================
  Files         689      689           
  Lines       13705    13705           
  Branches     1821     1821           
=======================================
  Hits        13122    13122           
  Misses        195      195           
  Partials      388      388
Impacted Files Coverage Δ
components/table/nz-thead.component.ts 93.75% <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 3dbe7c2...bbc48fa. Read the comment docs.

Copy link
Member

@vthinkxie vthinkxie left a comment

Choose a reason for hiding this comment

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

LGTM

@vthinkxie vthinkxie merged commit c85743d into NG-ZORRO:master Jun 19, 2019
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this pull request Jun 21, 2019
* chore: sync ant-design v3.19.6 (NG-ZORRO#3602)

* fix(module:table): fix sortChange with dynamic columns (NG-ZORRO#3603) (NG-ZORRO#3605)

close NG-ZORRO#3603

* chore: sync with antd 3.19 (NG-ZORRO#3590)

* chore: sync with antd 3.19

* test(module:page-header): fix test

* chore: refactor commit hook (NG-ZORRO#3610)

* chore: refactor commit hook

* chore(packaging): clean dependencie

* chore(packaging): clean dev dependencie

* chore: refactor commit hook (NG-ZORRO#3610)

* chore: refactor commit hook

* chore(packaging): clean dependencie

* chore(packaging): clean dev dependencie

* chore: refactor commit hook (NG-ZORRO#3610)

* chore: refactor commit hook

* chore(packaging): clean dependencie

* chore(packaging): clean dev dependencie

* build: refactor scripts

ref NG-ZORRO#2474

* chore: update ci config

* ci: fix integration

* ci: add travis_wait

* ci: fix ci

* ci: fix ci

* ci: fix ci

* ci: fix ci

* ci: fix ci

* chore: fix type

* build: add site release scripts

* build: _

* build: add `test:watch` task

* build: fix `test:watch` task

* chore: bump node to 12.1.0

* ci: add now.json
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this pull request Jun 21, 2019
* chore: sync ant-design v3.19.6 (NG-ZORRO#3602)

* fix(module:table): fix sortChange with dynamic columns (NG-ZORRO#3603) (NG-ZORRO#3605)

close NG-ZORRO#3603

* chore: sync with antd 3.19 (NG-ZORRO#3590)

* chore: sync with antd 3.19

* test(module:page-header): fix test

* chore: refactor commit hook (NG-ZORRO#3610)

* chore: refactor commit hook

* chore(packaging): clean dependencie

* chore(packaging): clean dev dependencie

* chore: refactor commit hook (NG-ZORRO#3610)

* chore: refactor commit hook

* chore(packaging): clean dependencie

* chore(packaging): clean dev dependencie

* chore: refactor commit hook (NG-ZORRO#3610)

* chore: refactor commit hook

* chore(packaging): clean dependencie

* chore(packaging): clean dev dependencie

* build: refactor scripts

ref NG-ZORRO#2474

* chore: update ci config

* ci: fix integration

* ci: add travis_wait

* ci: fix ci

* ci: fix ci

* ci: fix ci

* ci: fix ci

* ci: fix ci

* chore: fix type

* build: add site release scripts

* build: _

* build: add `test:watch` task

* build: fix `test:watch` task

* chore: bump node to 12.1.0

* ci: add now.json
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this pull request Jun 21, 2019
* chore: sync ant-design v3.19.6 (NG-ZORRO#3602)

* fix(module:table): fix sortChange with dynamic columns (NG-ZORRO#3603) (NG-ZORRO#3605)

close NG-ZORRO#3603

* chore: sync with antd 3.19 (NG-ZORRO#3590)

* chore: sync with antd 3.19

* test(module:page-header): fix test

* chore: refactor commit hook (NG-ZORRO#3610)

* chore: refactor commit hook

* chore(packaging): clean dependencie

* chore(packaging): clean dev dependencie

* chore: refactor commit hook (NG-ZORRO#3610)

* chore: refactor commit hook

* chore(packaging): clean dependencie

* chore(packaging): clean dev dependencie

* chore: refactor commit hook (NG-ZORRO#3610)

* chore: refactor commit hook

* chore(packaging): clean dependencie

* chore(packaging): clean dev dependencie

* build: refactor scripts

ref NG-ZORRO#2474

* chore: update ci config

* ci: fix integration

* ci: add travis_wait

* ci: fix ci

* ci: fix ci

* ci: fix ci

* ci: fix ci

* ci: fix ci

* chore: fix type

* build: add site release scripts

* build: _

* build: add `test:watch` task

* build: fix `test:watch` task

* chore: bump node to 12.1.0

* ci: add now.json

* ci: add now.json
Ricbet pushed a commit to Ricbet/ng-zorro-antd that referenced this pull request Apr 9, 2020
hsuanxyz pushed a commit to hsuanxyz/ng-zorro-antd that referenced this pull request Aug 5, 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.

nzTable 通过 *ngFor 动态生成列导致 nzSortChange 反复触发
2 participants