-
Notifications
You must be signed in to change notification settings - Fork 27.4k
add $hasFocus or $focused to forms #903
Comments
+1 |
+1 👍 Already implemented in my app :) |
As part of our effort to clean out old issues, this issue is being automatically closed since it has been inactivite for over two months. Please try the newest versions of Angular ( Thanks! |
Unless I'm reading the docs wrong, this is still an issue. |
You can just use Not sure you really need this. |
Yes we do. |
+1 |
1 similar comment
+1 |
+1 This is definitely needed. Consider the situation:
I can do:
But I cannot do this if I want the icon-group-addon before the input. $focus flag on form models would solve this.
|
+1 |
2 similar comments
+1 |
+1 |
+1 Consider situation where error "This field does not pass validation" is shown even when input is focus. User would be annoyed seeing the error message as he's intending to enter the right text. |
@poonwu, this is what |
+1 |
+1 |
+1 - this flag can definitely come useful in many cases. |
+1 |
1 similar comment
+1 |
@btford Any idea on this one? Or is it gone for good? It seems you've had people chiming in on this for almost 5 years now. Cheers |
As explained in #903 (comment), I still believe this is not something that belongs in core. It is not as often needed and is pretty easy to implement as a standalone directive (and even distribute as a 3rd-party module). Especially since Angular (2+) doesn't support it either afaik, I would be very hesitant about adding it to AngularJS (1.x). |
+1 |
1 similar comment
+1 |
+1 |
+1 |
just like we have $pristine and $dirty it would be great if we also allowed binding to $focus and $notFocused.
The text was updated successfully, but these errors were encountered: