diff --git a/src/components/vue-drag-resize.js b/src/components/vue-drag-resize.js index 9e87056..2099856 100644 --- a/src/components/vue-drag-resize.js +++ b/src/components/vue-drag-resize.js @@ -299,11 +299,11 @@ export default { return; } - if (this.dragHandle && target.getAttribute('data-drag-handle') !== this._uid.toString()) { + if (this.dragHandle && target?.getAttribute('data-drag-handle') !== this._uid.toString()) { return; } - if (this.dragCancel && target.getAttribute('data-drag-cancel') === this._uid.toString()) { + if (this.dragCancel && target?.getAttribute('data-drag-cancel') === this._uid.toString()) { return; }