Added preventDefault directive.