Skip to content

Commit 2c53eb9

Browse files
committed
Use isDragging instead of isDragSource
1 parent 38f3793 commit 2c53eb9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@dnd-kit/dom': patch
3+
---
4+
5+
Use the `draggable.isDragging` property instead of `draggable.isDragSource` to set `aria-grabbing` and `aria-pressed` attributes.

packages/dom/src/core/plugins/accessibility/Accessibility.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export class Accessibility extends Plugin<DragDropManager> {
111111
}
112112

113113
for (const key of ['aria-pressed', 'aria-grabbed']) {
114-
activator.setAttribute(key, String(draggable.isDragSource));
114+
activator.setAttribute(key, String(draggable.isDragging));
115115
}
116116

117117
activator.setAttribute('aria-disabled', String(draggable.disabled));

0 commit comments

Comments
 (0)