@cocreate/file 1.15.1 → 1.15.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.15.2](https://github.com/CoCreate-app/CoCreate-file/compare/v1.15.1...v1.15.2) (2024-02-14)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * realtime defaults to false ([c6fb16c](https://github.com/CoCreate-app/CoCreate-file/commit/c6fb16c6f634c9a0eac244884913941963e5807b))
7
+
1
8
  ## [1.15.1](https://github.com/CoCreate-app/CoCreate-file/compare/v1.15.0...v1.15.1) (2024-02-13)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/file",
3
- "version": "1.15.1",
3
+ "version": "1.15.2",
4
4
  "description": "A headless file uploader that uses HTML5 attributes for customization. Allows easy upload of files to server.",
5
5
  "keywords": [
6
6
  "file",
package/src/client.js CHANGED
@@ -177,8 +177,10 @@ async function fileEvent(event) {
177
177
 
178
178
  const isImport = input.getAttribute('import')
179
179
  const isRealtime = input.getAttribute('realtime')
180
- if (isRealtime !== 'false' && (isImport || isImport == "")) {
181
- Import(input)
180
+ if (isRealtime && isRealtime !== 'false') {
181
+ if (isImport || isImport == "") {
182
+ Import(input)
183
+ }
182
184
  }
183
185
  }
184
186
  } catch (error) {