.css Strange behavior

Hi

please look at this.
http://webix.com/snippet/b1b813f3

Why does Yellow is not setted ?
If you change order inside for the 2 colors, it’s working.

If i want to switch between 2 css, i can’t.

Thanks

You need to remove the old style before applying a new one (for now you can see both of them in DOM). A text input hasn’t add/removeCss methods, but you can use them globally:

webix.html.addCss($$("My").$view, "Green");
webix.html.removeCss($$("My").$view, "Green");

http://webix.com/snippet/7e695f09