Skip to content

Commit

Permalink
Update core.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
tsv2013 authored Sep 6, 2024
1 parent 4a96d39 commit 572829c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/survey-core/src/dragdrop/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export abstract class DragDropCore<T> implements IDragDropEngine {

let index = 0;
let dragOverNode: HTMLElement = dragOverNodes[index];
while (dragOverNode && dragOverNode.className && dragOverNode.className.indexOf("sv-drag-target-skipped") != -1) {
while (dragOverNode && dragOverNode.className && typeof dragOverNode.className.indexOf == "function" && dragOverNode.className.indexOf("sv-drag-target-skipped") != -1) {
index++;
dragOverNode = dragOverNodes[index];
}
Expand Down

0 comments on commit 572829c

Please sign in to comment.