Skip to content

Commit

Permalink
fix: event reference in component _handleKeyDown
Browse files Browse the repository at this point in the history
Fix 'ReferenceError: event is not defined' in _handleKeyDown caused by not using '$event' parameter
  • Loading branch information
steven-hadfield committed Apr 4, 2018
1 parent cd3ce22 commit f23cb65
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ export class DlDateTimePickerComponent<D> implements OnChanges, OnInit, ControlV

this.focusActiveCell();
// Prevent unexpected default actions such as form submission.
event.preventDefault();
$event.preventDefault();
}
}

Expand Down

0 comments on commit f23cb65

Please sign in to comment.