mirror of
https://github.com/nasa/openmct.git
synced 2025-06-17 22:58:14 +00:00
[Drag-Drop] Check for default prevented correctly
Check for defaultPrevented property instead of trying to check nonexistent method isDefaultPrevented(); for WTD-1354 in the context of WTD-1233.
This commit is contained in:
@ -101,7 +101,7 @@ define(
|
||||
);
|
||||
mockEvent = jasmine.createSpyObj(
|
||||
'event',
|
||||
[ 'preventDefault', 'isDefaultPrevented' ]
|
||||
[ 'preventDefault' ]
|
||||
);
|
||||
|
||||
testGrid = [ 123, 456 ];
|
||||
@ -326,7 +326,7 @@ define(
|
||||
|
||||
it("ignores drops when default has been prevented", function () {
|
||||
// Avoids redundant drop-handling, WTD-1233
|
||||
mockEvent.isDefaultPrevented.andReturn(true);
|
||||
mockEvent.defaultPrevented = true;
|
||||
|
||||
// Notify that a drop occurred
|
||||
testModel.composition.push('d');
|
||||
|
Reference in New Issue
Block a user