From 14679e6bcdf14d07cc8bcdb29cb22272fad3d4ec Mon Sep 17 00:00:00 2001 From: Mattan Yeroushalmi Date: Thu, 11 Aug 2022 15:26:28 +0300 Subject: [PATCH] Add passive event listener in SortableContainer --- src/SortableContainer/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SortableContainer/index.js b/src/SortableContainer/index.js index 9b24a045..4b4f932e 100644 --- a/src/SortableContainer/index.js +++ b/src/SortableContainer/index.js @@ -97,7 +97,7 @@ export default function sortableContainer( Object.keys(this.events).forEach((key) => events[key].forEach((eventName) => - this.container.addEventListener(eventName, this.events[key], false), + this.container.addEventListener(eventName, this.events[key], { passive: false }), ), );