Skip to content

Commit da31e61

Browse files
committed
fix onClick to check if event is within activateButton
1 parent e143660 commit da31e61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@react-aria/dnd/src/DragManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ class DragSession {
320320
onClick(e: MouseEvent) {
321321
this.cancelEvent(e);
322322
if (isVirtualClick(e) || this.isVirtualClick) {
323-
if (e.target === this.getCurrentActivateButton()) {
323+
if (this.getCurrentActivateButton()?.contains(e.target as Node)) {
324324
this.activate();
325325
return;
326326
}

0 commit comments

Comments
 (0)