onyx.Button css issue: the css classes that I add on runtime are removed when the button is pressed.

Hey I have a little situation when trying to change a Button css class with a function, when the app is loaded I have a button with one css class lets say classA, there is also a toggle button that when it changes it fires a function that is meant to add a new css class to the button lets say it adds classB and then removes classA from it, so far it works well but then if I press the button, the classes that were added to the button are gone and it is restored to its original state, I don't know why is this happening and I already check every possibility but in my javascript code there is nothing that intentionally changes the button's class to classA. does anyone know what could be the problem?.

Comments

Sign In or Register to comment.