Change icon clickable property

I want to change an icon 'clickable' property to false by clicking on another icon

iconName.clickable = false does not work

Hi Shoham,
You may need to create a temporary state variable and set it to true by default. Then use that variable in the 'Only run when' click event handler. When you click on another icon, update the temporary state variable to false, it will disable the icon until you update the variable to true again.

1 Like

It works for me