Toggling setEnabled on Button Component infinately appends PrimaryStyleName

If you have a button with a primary style name with more than one name define, enabling and disabling the button will cause it to infinitely append the style names. This does not happen if the primary style name is a single name.

I am not sure if this might apply to other scenarios when the primary style name is more than one name.

Vaadin 7.2.4

[code]
testButton = new Button(“Button”);
testButton.setPrimaryStyleName(“test”);
testButton.addStyleName(“btn btn-primary”);
testButton.setEnabled(false);
testButton2 = new Button(“Button”);
testButton2.setPrimaryStyleName(“test two”);
testButton2.addStyleName(“btn btn-primary”);
testButton2.setEnabled(false);

Button testClickButton = new Button(“Click”);
testClickButton.addClickListener(new ClickListener(){

@Override
public void buttonClick(ClickEvent event) {
    testButton.setEnabled(!testButton.isEnabled());
    testButton2.setEnabled(!testButton2.isEnabled());
}

});
[/code]HTML TestButton

[code]

Button
[/code]HTML TestButton2 [code]
Button
[/code]

In case someone else stumbles upon this post: Stephen created
ticket #14314
about this, any further updates will go there.