Matt
Posts: 0
Joined: Tue Oct 16, 2012 7:26 pm

Collapsable Sets

I seem to be having a problem will Collapsable Sets.

I am populating an inner and outer set with data from a rest service. The outer set is populated on page load. The inner is populated when the outer is expanded.

Now when I go to expand the inner so I can view the data, the outer expand is being called again for some reason. This causes the data to reload and closes the inner.

The net effect is that I cannot view the inner data because it is closed as soon as I click to open it.

I have created an example at:
http://appery.io/app/mobile-frame?src...

If you view the console log, you will see the events being fired when you click to expand.

Please advise!

-Matt

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Collapsable Sets

Hi Matt,

Please try recreating Collapsible Sets. What exactly do you want to do?

Matt
Posts: 0
Joined: Tue Oct 16, 2012 7:26 pm

Collapsable Sets

I have recreated the collapsible set. That's what the example was. The behavior is the same as in the app I am creating.

The issue seems to be that the expand event is being propagated up to the parent collapsible set as well.

What I am doing is pulling a set of data in the parent. When the parent is expanded, I need to pull some related data into a child collapsible set.

Again, the issue I am having is that when the child set is expanded, the expand event propogates up to the parent which causes the child's data to be fetched again. That fetch is reclosing the set that is being expanded.

Please advise.

Thanks,
Matt

Matt
Posts: 0
Joined: Tue Oct 16, 2012 7:26 pm

Collapsable Sets

I have recreated the collapsible set. That's what the example was. The behavior is the same as in the app I am creating.

The issue seems to be that the expand event is being propagated up to the parent collapsible set as well.

What I am doing is pulling a set of data in the parent. When the parent is expanded, I need to pull some related data into a child collapsible set.

Again, the issue I am having is that when the child set is expanded, the expand event propogates up to the parent which causes the child's data to be fetched again. That fetch is reclosing the set that is being expanded.

Please advise.

Thanks,
Matt

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Collapsable Sets

Hello! In JS code on inner_collapsblock - Expand add the following line prearguments[0].stopPropagation();/pre

Matt
Posts: 0
Joined: Tue Oct 16, 2012 7:26 pm

Collapsable Sets

Maryna,

Perfect! Thank you so much!

-Matt

Return to “Issues”