You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 2-ui/4-forms-controls/2-focus-blur/article.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,13 @@
2
2
3
3
An element receives a focus when the user either clicks on it or uses the `key:Tab` key on the keyboard. There's also an `autofocus` HTML attribute that puts the focus into an element by default when a page loads and other means of getting a focus.
4
4
5
-
Focusing generally means: "prepare to accept the data here", so that's the moment when we can run the code to initialize or load something.
5
+
Focusing on an element generally means: "prepare to accept the data here", so that's the moment when we can run the code to initialize the required functionality.
6
6
7
7
The moment of losing the focus ("blur") can be even more important. That's when a user clicks somewhere else or presses `key:Tab` to go to the next form field, or there are other means as well.
8
8
9
9
Losing the focus generally means: "the data has been entered", so we can run the code to check it or even to save it to the server and so on.
10
10
11
-
There are important peculiarities when working with focus events. We'll do the best to cover them here.
11
+
There are important peculiarities when working with focus events. We'll do the best to cover them further on.
0 commit comments