Forráskód Böngészése

Add uppy-DragDrop-input class name back, to fix tests and potential backwards-compat customizations

Artur Paikin 4 éve
szülő
commit
ab88612dff
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      packages/@uppy/drag-drop/src/index.js

+ 2 - 2
packages/@uppy/drag-drop/src/index.js

@@ -142,6 +142,7 @@ module.exports = class DragDrop extends Plugin {
     const restrictions = this.uppy.opts.restrictions
     return (
       <input
+        class="uppy-DragDrop-input"
         type="file"
         hidden
         ref={(ref) => { this.fileInputRef = ref }}
@@ -178,8 +179,7 @@ module.exports = class DragDrop extends Plugin {
   }
 
   render (state) {
-    const dragDropClass = `
-      uppy-Root
+    const dragDropClass = `uppy-Root
       uppy-u-reset
       uppy-DragDrop-container
       ${this.isDragDropSupported ? 'uppy-DragDrop--isDragDropSupported' : ''}