fixed drag

This commit is contained in:
antelle 2020-05-05 17:46:07 +02:00
parent 13585f5317
commit 851ade7e24
No known key found for this signature in database
GPG Key ID: 094A2F2D6136A4EE
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ class MenuItemView extends View {
const types = e.dataTransfer.types;
for (let i = 0; i < types.length; i++) {
if (types[i] === 'text/group' || types[i] === 'text/entry') {
return true;
return DragDropInfo.dragObject && !DragDropInfo.dragObject.readOnly;
}
}
return false;