Thank you for reporting this bug. We will make it our priority to review this report.
-
Sencha Premium User
Card Layout - Restore previous card bug
After removing the card from the container, the first card becomes active but remains hidden.
-
I was able to get the setActiveItem to work but changed up a few things:
-
Sencha User
You need to define activeItem: 'card-1' to the container directly rather than its layout. As container is keeping track to its active item. If you are not defining active item to the container, its treating as first item that is 'card-0'. So when you are removing 'card-1' from container, and trying to set 'card-0' as active, at that time container is checking its exiting item, its founding 'card-0', thats why its not doing any processing to show that card.
So the solution is -
* Define activeItem: 'card-1' or 1 to the contianer.
* Also remove that alert part as it will give error becase after removing second card, getActiveItem() will return null.
-
Sencha Premium User
mitchellsimoens, praveensaini23 thank you for valuable advice.