Fix drag of non-sequential rows in Firefox

When selecting multiple rows with Ctrl, drag would not work
This commit is contained in:
nathan 2023-12-06 11:32:09 -07:00
parent a5b3c83a54
commit b03dac3032

View File

@ -157,12 +157,7 @@ export class EgwDragActionImplementation implements EgwActionImplementation {
}
})
node.addEventListener("mouseup", (event) => {
if (_context.isSelection(event) && document.getSelection().type === 'Range') {
//let the draggable be reactivated by another click up as the range selection is
// not working as expected in shadow-dom as expected in all browsers
} else {
node.setAttribute("draggable", true);
}
node.setAttribute("draggable", true);
// Set cursor back to auto. Seems FF can't handle cursor reversion
document.body.style.cursor = 'auto'