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/build/components/inputGroup/index.js +1 -1
- package/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.d.ts +2 -1
- 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 +2 -1
package/package.json
CHANGED
|
@@ -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("
|
|
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
|
|
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
|
}
|