react-dropzone 14.3.2 → 14.3.3

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
@@ -190,7 +190,7 @@
190
190
  "webpack-blocks": "^2.1.0"
191
191
  },
192
192
  "typings": "typings/react-dropzone.d.ts",
193
- "version": "14.3.2",
193
+ "version": "14.3.3",
194
194
  "engines": {
195
195
  "node": ">= 10.13"
196
196
  },
@@ -1,3 +1,3 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`useDropzone() hook behavior renders the root and input nodes with the necessary props 1`] = `"<div role=\\"presentation\\" tabindex=\\"0\\"><input multiple=\\"\\" type=\\"file\\" style=\\"display: none;\\" tabindex=\\"-1\\"></div>"`;
3
+ exports[`useDropzone() hook behavior renders the root and input nodes with the necessary props 1`] = `"<div role=\\"presentation\\" tabindex=\\"0\\"><input multiple=\\"\\" type=\\"file\\" style=\\"border: 0px; clip: rect(0px, 0px, 0px, 0px); clip-path: inset(50%); height: 1px; margin: 0px -1px -1px 0px; overflow: hidden; padding: 0px; position: absolute; width: 1px; white-space: nowrap;\\" tabindex=\\"-1\\"></div>"`;
package/src/index.js CHANGED
@@ -946,7 +946,18 @@ export function useDropzone(props = {}) {
946
946
  accept: acceptAttr,
947
947
  multiple,
948
948
  type: "file",
949
- style: { display: "none" },
949
+ style: {
950
+ border: 0,
951
+ clip: "rect(0, 0, 0, 0)",
952
+ clipPath: "inset(50%)",
953
+ height: "1px",
954
+ margin: "0 -1px -1px 0",
955
+ overflow: "hidden",
956
+ padding: 0,
957
+ position: "absolute",
958
+ width: "1px",
959
+ whiteSpace: "nowrap",
960
+ },
950
961
  onChange: composeHandler(composeEventHandlers(onChange, onDropCb)),
951
962
  onClick: composeHandler(
952
963
  composeEventHandlers(onClick, onInputElementClick)