Angular 5 directive - Prevent double click