@ifsworld/granite-components 7.6.0 → 7.7.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.
@@ -2297,9 +2297,12 @@ class GraniteRadioButtonComponent {
2297
2297
  changes.labelPosition.currentValue != null &&
2298
2298
  changes.labelPosition.currentValue === 'before';
2299
2299
  }
2300
- if ((changes.disabled || changes.readonly) &&
2301
- (this.disabled || this.readonly)) {
2302
- this._radioDisabled = true;
2300
+ if (changes.disabled || changes.readonly) {
2301
+ if (this.disabled || this.readonly) {
2302
+ this._radioDisabled = true;
2303
+ }
2304
+ else
2305
+ this._radioDisabled = false;
2303
2306
  }
2304
2307
  }
2305
2308
  ngOnDestroy() {
@@ -2441,9 +2444,12 @@ class GraniteCheckboxComponent {
2441
2444
  changes.labelPosition.currentValue != null &&
2442
2445
  changes.labelPosition.currentValue === 'before';
2443
2446
  }
2444
- if ((changes.disabled || changes.readonly) &&
2445
- (this.disabled || this.readonly)) {
2446
- this._checkboxDisabled = true;
2447
+ if (changes.disabled || changes.readonly) {
2448
+ if (this.disabled || this.readonly) {
2449
+ this._checkboxDisabled = true;
2450
+ }
2451
+ else
2452
+ this._checkboxDisabled = false;
2447
2453
  }
2448
2454
  }
2449
2455
  focus(origin = 'program', options) {