item is being dropped on us - called by the drag mouseup handler - this calls the client drop event
(e: MouseEvent)
| 144 | |
| 145 | /** item is being dropped on us - called by the drag mouseup handler - this calls the client drop event */ |
| 146 | public drop(e: MouseEvent): void { |
| 147 | e.preventDefault(); |
| 148 | const ev = Utils.initEvent<DragEvent>(e, { target: this.el, type: 'drop' }); |
| 149 | if (this.option.drop) { |
| 150 | this.option.drop(ev, this._ui(DDManager.dragElement)) |
| 151 | } |
| 152 | this.triggerEvent('drop', ev); |
| 153 | } |
| 154 | |
| 155 | /** @internal true if element matches the string/method accept option */ |
| 156 | protected _canDrop(el: HTMLElement): boolean { |
no test coverage detected