Layout enable/disable issue with combobox

This should be a simple case that maybe someone can try to solve or it might just be a bug with Vaadin 7 beta 11. I have a combobox with some items added to it which is added to a FormLayout. When I disable the FormLayout the combobox appears to be disabled (which it should), but I am still able to select the dropdown and see the items, which I shouldn’t be able to. Also, when the FormLayout is re-enabled, when I click the ComboBox dropdown, it will not open. The button on the other hand behaves correctly when its parent layout is disabled.

Anybody have any input as to why this is happening?

Thanks guys.


@Override
    protected void init(VaadinRequest request) {
        final VerticalLayout layout = new VerticalLayout();
        layout.setMargin(true);
        setContent(layout);

        final FormLayout formLayout = new FormLayout();

        ComboBox combo = new ComboBox("Item:");
        combo.addItem("Item 1");
        combo.addItem("Item 2");
        combo.addItem("Item 3");
        combo.addItem("Item 4");

        Button btn1 = new Button("Click me");
        btn1.addClickListener(new Button.ClickListener() {
            @Override
            public void buttonClick(ClickEvent event) {
                Notification.show("you clicked me");
            }
        });

        formLayout.addComponent(combo);
        formLayout.addComponent(btn1);

        layout.addComponent(formLayout);

        Button btn = new Button("Enable/Disable", new Button.ClickListener() {
            @Override
            public void buttonClick(ClickEvent event) {
                formLayout.setEnabled(!formLayout.isEnabled());
            }
        });
        layout.addComponent(btn);


    }

This sounds like a bug, please file a ticket at our
bug tracker
.