Copy link to clipboard
Copied
I make a script using iconbutton when I make onClick function on that iconbutton the button turns into blue color. (It's being highlighted after clicking on it). How can I turn it back into normal state after every single click??
You have to specifically set it to be active, and then innactive.
That's stupid, but that's how this works:
iconbotton.onClick = function(){
this.active = true;
this.active = false;
};
Copy link to clipboard
Copied
You have to specifically set it to be active, and then innactive.
That's stupid, but that's how this works:
iconbotton.onClick = function(){
this.active = true;
this.active = false;
};
Copy link to clipboard
Copied
Great it works..!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now