Closed leesei closed 9 years ago
In HTML5, "disabled" as boolean attribute. A input is disabled as long as "disabled" is defined in the attribute, regardless of its value. http://www.w3.org/TR/html5/infrastructure.html#boolean-attribute
Can this logic handle the case
<toggle-switch ng-model="switchStatus" disabled><toggle-switch>
attrs.$observe('disabled', function(disabled) { if(disabled === 'true') { isEnabled = false; } else { isEnabled = true; } });
I'm requiring the same where I bind to a boolean
I fixed the issue with disabling in a fork: https://github.com/SMARTDATASYSTEMSLLC/angular-toggle-switch
In the latest release, this is how it works.
In HTML5, "disabled" as boolean attribute. A input is disabled as long as "disabled" is defined in the attribute, regardless of its value. http://www.w3.org/TR/html5/infrastructure.html#boolean-attribute
Can this logic handle the case