Vaadin 7 Accordion - Problem

Please have a look at the following test program. If I click the button (which removes the first tab), the second tab appears closed and is not selectable any more.

Vaadin version tested: 7.0.2 (on Chrome 25.0.1364.160 under Linux).

Is this a bug that I should report?


public class Application extends UI {

	@Override
	protected void init(VaadinRequest request) {
		final Accordion tabs = new Accordion();
		setContent(tabs);
		tabs.setHeight(300, Unit.PIXELS);
		final VerticalLayout one = new VerticalLayout();
		one.setCaption("One");
		one.addComponent(new Label("On first tab"));
		tabs.addTab(one);
		VerticalLayout two = new VerticalLayout();
		two.setCaption("Two");
		two.addComponent(new Label("On second tab"));
		tabs.addTab(two);
		Button remove = new Button("Remove One");
		remove.addClickListener(new Button.ClickListener() {

			@Override
			public void buttonClick(ClickEvent event) {
				tabs.removeComponent(one);
			}
		});
		two.addComponent(remove);
		tabs.setSelectedTab(two);
	}
}

Sounds like a bug - please
report it in our Trac
.


Ticket #11366