Skip to content

Commit

Permalink
Merge pull request #1824 from bbarry/patch-1
Browse files Browse the repository at this point in the history
originalEvent object needs preventDefault fn
  • Loading branch information
acrobat committed May 6, 2016
2 parents d6e3a55 + aa77809 commit 939993b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/suites/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,9 @@ test('paste must update the date', function() {
clipboardData: {
types: ['text/plain'],
getData: function() { return dateToPaste; }
}
},
preventDefault: function() { evt.originalEvent.isDefaultPrevented = true; },
isDefaultPrevented: false
}
};
this.input.trigger(evt);
Expand Down

0 comments on commit 939993b

Please sign in to comment.