We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8836d5 commit 99c8695Copy full SHA for 99c8695
scripts/test.js
@@ -10,7 +10,7 @@ createTestCafe().then((tc) => {
10
runner = tc.createRunner();
11
return runner
12
.src('./tests/Sortable.test.js')
13
- .browsers('chrome')
+ .browsers('chrome:headless')
14
.concurrency(3)
15
.run();
16
}).then((actualFailedCount) => {
src/EventDispatcher.js
@@ -11,7 +11,9 @@ export default function dispatchEvent(
originalEvent, putSortable, eventOptions
}
) {
- sortable = (sortable || rootEl[expando]);
+ sortable = (sortable || (rootEl && rootEl[expando]));
+ if (!sortable) return;
+
17
let evt,
18
options = sortable.options,
19
onName = 'on' + name.charAt(0).toUpperCase() + name.substr(1);
0 commit comments