Skip to content

Commit

Permalink
Added extra check in prevent default event test. See #1824
Browse files Browse the repository at this point in the history
  • Loading branch information
acrobat committed May 6, 2016
1 parent 939993b commit 9341da0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/suites/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,8 @@ test('paste must update the date', function() {
};
this.input.trigger(evt);
datesEqual(this.dp.dates[0], UTCDate(2015, 6, 22));

ok(evt.originalEvent.isDefaultPrevented, 'prevented original event');
});

test('clicking outside datepicker triggers \'hide\' event', function(){
Expand Down

0 comments on commit 9341da0

Please sign in to comment.