Angular: Prevent BLUR event when CLICK event happens

Discussão em 'Angular' iniciado por avishekdr, Março 24, 2025.

  1. avishekdr

    avishekdr Guest

    I'm writing an Angular app where there is a scenario I've to prevent blur event when click event happens. Problem is I'm not able to understand how this will happen as on click blur will always trigger since the target element is not in focus.

    Is there any way I can achieve this? Below is a video of what is happening. You will notice that 1st the BLUR event is completed then the click event on click of Clear button.

    [​IMG]

    Here is a stackblitz example I've created.

    Continue reading...

Compartilhe esta Página