CirclonGroup / angular-tree-component

A simple yet powerful tree component for Angular (>=2)
https://angular2-tree.readme.io/docs
MIT License
1.1k stars 492 forks source link

fix: return TreeNode for first and last child #894

Closed tobiasengelhardt closed 3 years ago

tobiasengelhardt commented 3 years ago

closes #893

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
[ ] Other... Please describe:

What is the current behavior?

Closes #893

What is the new behavior?

getFirstChild and getLastChild return TreeNode or null again.

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information