improve fix for single select

This commit is contained in:
vcoppe
2024-07-15 10:44:15 +02:00
parent a8c605a9e9
commit 111eb5c4df

View File

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