Skip to content

Commit 903bbbd

Browse files
committed
fixes #3032
1 parent 531dced commit 903bbbd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

2-ui/4-forms-controls/2-focus-blur/article.md

+2
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ If we enter something into the input and then try to use `key:Tab` or click away
9090

9191
Please note that we can't "prevent losing focus" by calling `event.preventDefault()` in `onblur`, because `onblur` works *after* the element lost the focus.
9292

93+
In practice though, one should think well, before implementing something like this, because we generally *should show errors* to the user, but *should not prevent their progress* in filling our form. They may want to fill other fields first.
94+
9395
```warn header="JavaScript-initiated focus loss"
9496
A focus loss can occur for many reasons.
9597

0 commit comments

Comments
 (0)