Skip to content

Commit a210a9d

Browse files
Bedford, NathanBedford, Nathan
authored andcommitted
Added 'passive' option to removeEventListener call (to match addEventListener call). Without this fix the listener removal doesn't work in older versions of Safari
1 parent 85f7aeb commit a210a9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios-drag-drop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ function _exposeIosHtml5DragDropShim(config) {
390390
el.addEventListener(event, handler, {passive:false});
391391
return {
392392
off: function() {
393-
return el.removeEventListener(event, handler);
393+
return el.removeEventListener(event, handler, {passive:false});
394394
}
395395
};
396396
}

0 commit comments

Comments
 (0)