This above is my input field" /> This above is my input field" /> This above is my input field"/>

Is there any way to detect the event on input field, when it's disabled using angular?

61 views Asked by At

I am trying to fetch any event event input field is disabled.

<input [disabled]='disableTextbox' (click)="delectInput()">

This above is my input field. I am trying to fetch the event when it's going in disabled state. Here is my example. Anyone know if Is there any way to do detect any event blur click hover when input is disabled?

1

There are 1 answers

0
Monke On

You could use the same example code but change the function in the HTML by changing it into <div (click)="toggleDisable($event)">. Then you can add onto the toggleDisable function to event.target.style.cursor = 'none';.