gd-bs 5.6.0 → 5.6.1
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/build/components/checkboxGroup/item.js +1 -1
- package/build/components/inputGroup/index.js +2 -4
- package/dist/gd-bs-icons.js +2 -2
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.js +2 -2
- package/dist/gd-bs.min.js +1 -1
- package/package.json +1 -1
- package/src/components/checkboxGroup/item.ts +1 -1
- package/src/components/inputGroup/index.ts +2 -4
package/package.json
CHANGED
|
@@ -35,7 +35,7 @@ export class CheckboxItem {
|
|
|
35
35
|
// Set the attributes
|
|
36
36
|
this._elCheckbox = this._el.querySelector("input");
|
|
37
37
|
if (this._elCheckbox) {
|
|
38
|
-
this._elCheckbox.
|
|
38
|
+
this._elCheckbox.readOnly = this._parent.isReadonly || this._props.isDisabled ? true : false;
|
|
39
39
|
|
|
40
40
|
// Default the title property for the checkbox
|
|
41
41
|
this._elCheckbox.title = this.props.label || this._parent.title || "";
|
|
@@ -205,8 +205,7 @@ class _InputGroup extends Base<IInputGroupProps> implements IInputGroup {
|
|
|
205
205
|
// Update the textbox
|
|
206
206
|
this.props.id ? textarea.id = this.props.id : null;
|
|
207
207
|
this.props.placeholder ? textarea.placeholder = this.props.placeholder : null;
|
|
208
|
-
textarea.
|
|
209
|
-
textarea.readOnly = textarea.disabled;
|
|
208
|
+
textarea.readOnly = this.props.isReadonly ? true : false;
|
|
210
209
|
textarea.rows = this.props.rows;
|
|
211
210
|
this.props.title ? textarea.title = this.props.title : null;
|
|
212
211
|
}
|
|
@@ -219,8 +218,7 @@ class _InputGroup extends Base<IInputGroupProps> implements IInputGroup {
|
|
|
219
218
|
// Update the textbox
|
|
220
219
|
this.props.id ? input.id = this.props.id : null;
|
|
221
220
|
this.props.placeholder ? input.placeholder = this.props.placeholder : null;
|
|
222
|
-
input.
|
|
223
|
-
input.readOnly = input.disabled;
|
|
221
|
+
input.readOnly = this.props.isReadonly ? true : false;
|
|
224
222
|
this.props.title ? input.title = this.props.title : null;
|
|
225
223
|
typeof (this.props.min) === "number" ? input.min = this.props.min + "" : null;
|
|
226
224
|
typeof (this.props.max) === "number" ? input.max = this.props.max + "" : null;
|