svelte-dnd-action
Advanced tools
Comparing version 0.6.15 to 0.6.16
@@ -39,3 +39,3 @@ { | ||
"description": "*An awesome drag and drop library for Svelte 3 (not using the browser's built-in dnd, thanks god): Rich animations, nested containers, touch support and more *", | ||
"version": "0.6.15", | ||
"version": "0.6.16", | ||
"repository": { | ||
@@ -42,0 +42,0 @@ "type": "git", |
@@ -162,2 +162,6 @@ import { | ||
case(" "): { | ||
// we don't want to affect nested input elements | ||
if (e.target.value !== undefined && !allDragTargets.has(e.target)) { | ||
return; | ||
} | ||
e.preventDefault(); // preventing scrolling on spacebar | ||
@@ -263,5 +267,2 @@ e.stopPropagation(); | ||
} | ||
node.tabIndex = isDragging && (node === focusedDz || config.dropFromOthersDisabled || (focusedDz && config.type!==dzToConfig.get(focusedDz).type)) ? -1 : 0; | ||
node.addEventListener('focus', handleZoneFocus); | ||
if (config.type && newType !== config.type) { | ||
@@ -274,2 +275,5 @@ unregisterDropZone(node, config.type); | ||
node.tabIndex = isDragging && (node === focusedDz || config.dropFromOthersDisabled || (focusedDz && config.type !== dzToConfig.get(focusedDz).type)) ? -1 : 0; | ||
node.addEventListener('focus', handleZoneFocus); | ||
for (let i = 0; i < node.children.length ; i++) { | ||
@@ -276,0 +280,0 @@ const draggableEl = node.children[i]; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
227547
5191