@mackin.com/styleguide 9.11.3 → 9.11.4

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/index.esm.js CHANGED
@@ -1988,6 +1988,11 @@ const FileUploader = (p) => {
1988
1988
  var _a;
1989
1989
  e.preventDefault();
1990
1990
  (_a = form.current) === null || _a === void 0 ? void 0 : _a.classList.remove(hoverClass);
1991
+ if (!p.multiple && e.dataTransfer.files.length > 1) {
1992
+ // we're mimicing the behavior of the file system "pick file" here.
1993
+ // it does not allow for multiple picks at all so we're just going to do the same and ignore.
1994
+ return;
1995
+ }
1991
1996
  onFilesChange(e.dataTransfer.files);
1992
1997
  }, onSubmit: e => {
1993
1998
  if (!files) {
package/index.js CHANGED
@@ -2015,6 +2015,11 @@ const FileUploader = (p) => {
2015
2015
  var _a;
2016
2016
  e.preventDefault();
2017
2017
  (_a = form.current) === null || _a === void 0 ? void 0 : _a.classList.remove(hoverClass);
2018
+ if (!p.multiple && e.dataTransfer.files.length > 1) {
2019
+ // we're mimicing the behavior of the file system "pick file" here.
2020
+ // it does not allow for multiple picks at all so we're just going to do the same and ignore.
2021
+ return;
2022
+ }
2018
2023
  onFilesChange(e.dataTransfer.files);
2019
2024
  }, onSubmit: e => {
2020
2025
  if (!files) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mackin.com/styleguide",
3
- "version": "9.11.3",
3
+ "version": "9.11.4",
4
4
  "description": "",
5
5
  "main": "./index.js",
6
6
  "module": "./index.esm.js",