@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.
- package/esm2020/lib/toggle-switch/toggle-switch.component.mjs +8 -4
- package/fesm2015/ifsworld-granite-components.mjs +7 -3
- package/fesm2015/ifsworld-granite-components.mjs.map +1 -1
- package/fesm2020/ifsworld-granite-components.mjs +7 -3
- package/fesm2020/ifsworld-granite-components.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2180,9 +2180,13 @@ class GraniteToggleSwitchComponent {
|
|
|
2180
2180
|
changes.labelPosition.currentValue != null &&
|
|
2181
2181
|
changes.labelPosition.currentValue === 'before';
|
|
2182
2182
|
}
|
|
2183
|
-
if
|
|
2184
|
-
|
|
2185
|
-
this.
|
|
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) {
|