@es-joy/jsoe 0.7.0 → 0.7.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/CHANGES.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # CHANGES TO `@es-joy/jsoe`
2
2
 
3
+ ## 0.7.1
4
+
5
+ - feat: fix bug with `file` in array/object context not triggering file
6
+ picker
7
+
3
8
  ## 0.7.0
4
9
 
5
10
  - feat: add `file` type including video, audio, photo, and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@es-joy/jsoe",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "type": "module",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./src/index.js",
@@ -1691,7 +1691,7 @@ const arrayType = {
1691
1691
  // invalid date checkbox; is this sufficient to prevent
1692
1692
  // other stray clicks apparently meant for the array
1693
1693
  // and object reference checking?
1694
- if (target.type !== 'checkbox' && target.type !== 'radio') {
1694
+ if (!['checkbox', 'radio', 'file'].includes(target.type)) {
1695
1695
  e.preventDefault();
1696
1696
  }
1697
1697
  }