Skip to content

Commit 3e8867c

Browse files
committed
SearchEditor.js: Only determine rule ids as targets
fixes #329
1 parent 081fcb0 commit 3e8867c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

asset/js/widget/SearchEditor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ define(["../notjQuery", "../vendor/Sortable"], function ($, Sortable) {
5555
if (! neighbour) {
5656
// User dropped the rule into an empty group
5757
placement = 'to';
58-
neighbour = event.to.closest('[id]');
58+
neighbour = event.to.closest('li[id]');
5959
}
6060
}
6161

0 commit comments

Comments
 (0)