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/dist/es/index.js +10 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/src/__snapshots__/index.spec.js.snap +1 -1
- package/src/index.js +12 -1
package/package.json
CHANGED
|
@@ -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=\\"
|
|
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: {
|
|
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)
|