ion-tree-list icon indicating copy to clipboard operation
ion-tree-list copied to clipboard

Children trees of items collapse automatically when you click on this first time

Open mukul7052 opened this issue 8 years ago • 7 comments

When you click on the items first time having further children tree.Then all the trees inside these items automatically collapse,But it is working fine after that.I take a look at your code and to do some modification but couldn't able to solve this issue.Would you please help me on it?

mukul7052 avatar Mar 04 '16 13:03 mukul7052

Hi @mukul7052, I am not very sure if I get your issue.

It's true that uncollapsed elements are collapsed when clicking on the 'collapse' button in the example site.

It might be that you find this an odd behavior?

A possible workaround could be to add two new actions to the directive where we collapse and uncollapse all elements (including subtrees).

It would be great if you could provide a bit more of feedback before we start implementing the new functionality.

Thank you very much for reporting!

fer avatar Mar 14 '16 10:03 fer

@mukul7052 I'd love to help if you can provide a bit more of the insights of this issue. Might be a non clear feature for more people.

fer avatar Apr 19 '16 07:04 fer

@fer I guess @mukul7052 is referring to issue #46

nilaykothari90 avatar Jan 10 '17 23:01 nilaykothari90

Hi @mukul7052 and @nilaykothari90 ,

Could you please confirm this is the desired behaviour?

Find the proposal here (please ignore the commit message): https://github.com/fer/ion-tree-list/commit/5be7a8d0f657fb5d997f654bcf378414ec9762a9

And an animated gif on how it would work:

ezgif com-601489347d

fer avatar Jan 13 '17 15:01 fer

It works for me. Thanks Fer for the quick help.

nilaykothari90 avatar Jan 14 '17 01:01 nilaykothari90

Fer,

Thank you very much for your kind cooperation, is working great for me also!

¡Gracias! ;-)

gsdiama avatar Jan 16 '17 10:01 gsdiama

Ok, I will soon have this implemented as a feature in the library and will close these two tickets.

Thank you for your support!

fer avatar Jan 17 '17 06:01 fer