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
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -152,18 +152,20 @@
152
152
153
153
ترتیب به این صورت است: `1 - 2 - 0`. به طور نرمال، `<li>` از focus پشتیبانی نمیکند اما `tabindex` آن را به همراه eventها و style دادن با `:focus` مهیا میکند.
154
154
155
-
```smart header="The property `elem.tabIndex` works too"
156
-
We can add `tabindex` from JavaScript by using the `elem.tabIndex` property. That has the same effect.
155
+
```smart header="هم کار میکند. `elem.tabIndex`"
156
+
157
+
ما میتوانیم `tabindex`از JavaScript را با استفاده از `elem.tabIndex` اضافه کنیم. آن هم اثر یکسان را دارد
158
+
157
159
```
158
160
159
161
## Delegation: focusin/focusout
160
162
161
-
Events `focus` and `blur` do not bubble.
162
-
163
-
For instance, we can't put `onfocus` on the `<form>` to highlight it, like this:
163
+
.وجود ندارد `blur` و `focus` رفتار بالا رفتن حبابی در
164
+
کنیم، مثل این highlight بگذاریم تا آن را `<form>` را روی `onfocus` برای مثال ما نمیتوانیم
164
165
165
166
```html autorun height=80
166
-
<!-- on focusing in the form -- add the class -->
167
+
<!-- را اضافه کنید class -- روی فرم focus در مورد -->
0 commit comments