@ifsworld/granite-components 7.4.0 → 7.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2180,9 +2180,13 @@ class GraniteToggleSwitchComponent {
2180
2180
  changes.labelPosition.currentValue != null &&
2181
2181
  changes.labelPosition.currentValue === 'before';
2182
2182
  }
2183
- if ((changes.disabled || changes.readonly) &&
2184
- (this.disabled || this.readonly)) {
2185
- this._toggleSwitchDisabled = true;
2183
+ // conditional checker if the control is either/both in readonly or disabled state
2184
+ if (changes.disabled || changes.readonly) {
2185
+ if (this.disabled || this.readonly) {
2186
+ this._toggleSwitchDisabled = true;
2187
+ }
2188
+ else
2189
+ this._toggleSwitchDisabled = false;
2186
2190
  }
2187
2191
  }
2188
2192
  focus(origin = 'program', options) {