Use utils closest function instead of native browser closest

This commit is contained in:
Max Hoffmann 2017-10-09 14:36:05 -04:00
parent b10ff77675
commit 74de416377
No known key found for this signature in database
GPG Key ID: 1DFA4D13DD27A676

View File

@ -54,7 +54,7 @@ export default class Droppable {
}
this.droppables = this._getDroppables();
const droppable = event.sensorEvent.target.closest(this.options.droppable);
const droppable = closest(event.sensorEvent.target, this.options.droppable);
if (!droppable) {
event.cancel();