fix selection fix

This commit is contained in:
vcoppe
2024-06-12 15:33:18 +02:00
parent 20cd2dfe73
commit d2d83900f3

View File

@@ -62,7 +62,11 @@
);
});
if ($selection.size > 1 && !(e.ctrlKey || e.metaKey || e.shiftKey)) {
if (
e.originalEvent &&
$selection.size > 1 &&
!(e.originalEvent.ctrlKey || e.originalEvent.metaKey || e.originalEvent.shiftKey)
) {
// Fix bug that sometimes causes a single select to be treated as a multi-select
$selection.clear();
$selection.set(item.extend(getRealId(changed[0])), true);