mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-18 00:55:35 +00:00
DragDrop trash removed, modal example fix
This commit is contained in:
parent
eb9f82f57a
commit
e1ae7fd72d
3 changed files with 6 additions and 7 deletions
|
|
@ -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`)
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
5
website/src/examples/modal/app.html
Normal file
5
website/src/examples/modal/app.html
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<!-- Basic Uppy styles -->
|
||||
<link rel="stylesheet" href="/uppy/uppy.css">
|
||||
|
||||
<!-- Modal trigger -->
|
||||
<button id="uppyModalOpener">Open Uppy Modal</button>
|
||||
Loading…
Add table
Add a link
Reference in a new issue