mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-30 01:17:37 +03:00
fix: prevent default behavior only when drag handle id is not 'drag-handle'
This commit is contained in:
parent
e9828a605e
commit
2046df3a43
@ -91,6 +91,7 @@
|
||||
if (dragHandle.id != 'drag-handle') {
|
||||
// We rely on elements with id `drag-handle` to initiate this drag
|
||||
e.preventDefault();
|
||||
return;
|
||||
}
|
||||
clone = cloneNode(e.target);
|
||||
document.body.appendChild(clone);
|
||||
|
Loading…
Reference in New Issue
Block a user