mirror of
https://github.com/Shopify/draggable.git
synced 2025-12-08 20:15:56 +00:00
Use utils closest function instead of native browser closest
This commit is contained in:
parent
b10ff77675
commit
74de416377
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user