Skip to content

Commit cb1e4e0

Browse files
Update article.md
1 parent 259fc00 commit cb1e4e0

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,13 @@
9898
9999
:هم می‌تواند باعث آن شود. برای مثال javascript می‌کند اما خود click یکی از آن‌ها وقتی است که بازدیدکننده روی جای دیگری
100100
101-
- An `alert` moves focus to itself, so it causes the focus loss at the element (`blur` event), and when the `alert` is dismissed, the focus comes back (`focus` event).
102-
- If an element is removed from DOM, then it also causes the focus loss. If it is reinserted later, then the focus doesn't return.
101+
(`focus` event) نادیده گرفته می‌شود، برمی‌گردد `alert` و وقتی که (`blur` event) در عنصر می‌شود focus فوکوس را به خودش منتقل می‌کند، پس باعث از بین رفتن `alert` یک -
103102
104-
These features sometimes cause `focus/blur` handlers to misbehave -- to trigger when they are not needed.
103+
برگردانده نمی‌شود focus می‌شود. اگر آن بعدا دوباره وارد شود focus پاک شود، آنگاه آن هم باعث از بین رفتن DOM از element اگر یک -
105104
106-
The best recipe is to be careful when using these events. If we want to track user-initiated focus-loss, then we should avoid causing it ourselves.
105+
.شوند trigger بدرفتاری کنند -- زمانی که نیاز نیست `focus/blurs` این ویژگی‌ها گاهی باعث می‌شوند -
106+
107+
توسط کاربر را ردیابی کنیم، خودمان باید از ایجاد آن اجتناب کنیم. focus-loss مراقب باشید. اگر می‌خواهیم events بهترین دستورالعمل این است که موقع کار با این
107108
```
108109
## Allow focusing on any element: tabindex
109110

0 commit comments

Comments
 (0)