gd-bs 5.8.9 → 5.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-bs",
3
- "version": "5.8.9",
3
+ "version": "5.9.0",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -173,16 +173,16 @@ class _InputGroup extends Base<IInputGroupProps> implements IInputGroup {
173
173
  // See if this is a file
174
174
  if (this.props.type == InputGroupTypes.File) {
175
175
  // Set the change event
176
- (elInput as HTMLInputElement).addEventListener("onchange", (ev) => {
176
+ (elInput as HTMLInputElement).addEventListener("change", (ev) => {
177
177
  // Get the source file
178
178
  let srcFile = ev.target["files"][0];
179
179
  if (srcFile) {
180
180
  let reader = new FileReader();
181
181
 
182
182
  // Set the file loaded event
183
- reader.onloadend = (ev: any) => {
183
+ reader.onloadend = (ev) => {
184
184
  this._fileValue = {
185
- data: ev.target.result,
185
+ data: ev.target.result as any,
186
186
  name: srcFile.name
187
187
  };
188
188
  }
@@ -41,7 +41,8 @@ import { IButtonProps } from "../button/types";
41
41
 
42
42
  /** Input Group File Value */
43
43
  export interface IInputGroupFileValue {
44
-
44
+ data: ArrayBuffer;
45
+ name: string;
45
46
  }
46
47
 
47
48
  /**