DragDrop trash removed, modal example fix

This commit is contained in:
Artur Paikin 2016-02-21 12:50:42 -05:00
parent eb9f82f57a
commit e1ae7fd72d
3 changed files with 6 additions and 7 deletions

View file

@ -146,17 +146,11 @@ export default class DragDrop extends Plugin {
}
install () {
// Initialize dragdrop component, mount it to container DOM node
// this.container = document.querySelector(this.opts.target)
// this.container.innerHTML = this.render()
const caller = this
this.target = this.getTarget(this.opts.target, caller)
this.container = document.querySelector(this.target)
this.container.innerHTML = this.render()
// this.target.innerHTML = this.render()
// Set selectors
this.dropzone = document.querySelector(`${this.target} .UppyDragDrop-inner`)
this.input = document.querySelector(`${this.target} .UppyDragDrop-input`)

View file

@ -7,5 +7,5 @@ const uppy = new Uppy({debug: true})
uppy
.use(Modal)
.use(Dummy, {target: Modal})
.use(GoogleDrive, {target: Modal})
// .use(GoogleDrive, {target: Modal})
.run()

View file

@ -0,0 +1,5 @@
<!-- Basic Uppy styles -->
<link rel="stylesheet" href="/uppy/uppy.css">
<!-- Modal trigger -->
<button id="uppyModalOpener">Open Uppy Modal</button>