gd-bs 5.6.6 → 5.6.7
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/inputGroup/index.js +3 -3
- package/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.d.ts +3 -3
- package/dist/gd-bs.js +1 -1
- package/dist/gd-bs.min.js +1 -1
- package/package.json +1 -1
- package/src/components/inputGroup/index.ts +3 -3
- package/src/components/inputGroup/types.d.ts +3 -3
package/package.json
CHANGED
|
@@ -278,12 +278,12 @@ class _InputGroup extends Base<IInputGroupProps> implements IInputGroup {
|
|
|
278
278
|
* Public Interface
|
|
279
279
|
*/
|
|
280
280
|
|
|
281
|
-
getValue() { return this.
|
|
281
|
+
getValue() { return this.elTextbox.value; }
|
|
282
282
|
|
|
283
283
|
// Sets the textbox value
|
|
284
284
|
setValue(value: string = "") {
|
|
285
285
|
// Set the textbox value
|
|
286
|
-
this.
|
|
286
|
+
this.elTextbox.value = value;
|
|
287
287
|
|
|
288
288
|
// See if a change event exists
|
|
289
289
|
if (this._initFl && this.props.onChange) {
|
|
@@ -293,6 +293,6 @@ class _InputGroup extends Base<IInputGroupProps> implements IInputGroup {
|
|
|
293
293
|
}
|
|
294
294
|
|
|
295
295
|
// Returns the textbox
|
|
296
|
-
get
|
|
296
|
+
get elTextbox(): HTMLInputElement | HTMLTextAreaElement { return this.el.querySelector("input") || this.el.querySelector("textarea"); }
|
|
297
297
|
}
|
|
298
298
|
export const InputGroup = (props: IInputGroupProps, template?: string): IInputGroup => { return new _InputGroup(props, template); }
|
|
@@ -46,6 +46,9 @@ export interface IInputGroup {
|
|
|
46
46
|
/** The input group element. */
|
|
47
47
|
el: HTMLElement;
|
|
48
48
|
|
|
49
|
+
/** Reference to the textbox input/textarea element. */
|
|
50
|
+
elTextbox: HTMLInputElement | HTMLTextAreaElement;
|
|
51
|
+
|
|
49
52
|
/** Method to get the value. */
|
|
50
53
|
getValue: () => string;
|
|
51
54
|
|
|
@@ -57,9 +60,6 @@ export interface IInputGroup {
|
|
|
57
60
|
|
|
58
61
|
/** Shows the input group. */
|
|
59
62
|
show: () => void;
|
|
60
|
-
|
|
61
|
-
/** Reference to the textbox input/textarea element. */
|
|
62
|
-
textbox: HTMLInputElement | HTMLTextAreaElement;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
/**
|