angular-tree-component icon indicating copy to clipboard operation
angular-tree-component copied to clipboard

treeModel.filterNodes behaves weird when compiled with AOT

Open snehasis opened this issue 9 years ago • 4 comments

Hi,

The tree component works perfectly when compiled as JIT , but when compiled the same code with AOT it started behaving weird when you do the tree.treeModel.filterNodes(text, true);

When you enter any data on the search input , it JIT it display the Parent and Filtered Child Node properly , but on AOT it Opens up all the Parent Nodes and overlap with each Other like the Attached ScreenShot.

It only happens on the AOT compilation, not sure why the same thing never happened on JIT compilation. error-aot-angular-tree-3 2 3

Thank you

snehasis avatar Mar 13 '17 09:03 snehasis

in jit as well, I am able to see issue. Along with it, the nodes which don't match the search term are no more hidden although hidden attribute is set

debslab avatar Mar 14 '17 05:03 debslab

If I put useVirtualScroll: true in options, then the issue goes away for me. But again scroll bar comes for even small tree.

debslab avatar Mar 14 '17 06:03 debslab

Will be fixed in the coming version

--

On Tue, Mar 14, 2017 at 8:49 AM, debslab [email protected] wrote:

If I put useVirtualScroll: true in options, then the issue goes away for me. But again scroll bar comes for even small tree.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/500tech/angular-tree-component/issues/218#issuecomment-286336726, or mute the thread https://github.com/notifications/unsubscribe-auth/AA2SSkwhZZyAHpclB6vkFLwUx6BnGaInks5rljhggaJpZM4MbA80 .

adamkleingit avatar Mar 15 '17 11:03 adamkleingit

Hi @debslab , @snehasis fixed in 3.2.4, can you verify?

adamkleingit avatar Apr 04 '17 07:04 adamkleingit