toggle
toggle copied to clipboard
Conditionally disabling toggle does not change disabled classes
I am conditionally disabling the toggle base on a truthy value which is working fine however when there's an on change and the disable value is false I still have the disabled classes show on the toggle even though I am able to toggle. How do I remove the class when disabled is falsy and have the disabled class when disabled is truthy?