File tree Expand file tree Collapse file tree
2-ui/4-forms-controls/2-focus-blur Expand file tree Collapse file tree Original file line number Diff line number Diff line change 222222 </script >
223223```
224224
225- ## Summary
225+ ## خلاصه
226226
227- Events ` focus ` and ` blur ` trigger on an element focusing/losing focus .
227+ فعال شدن eventهای ` focus ` و ` blur ` بسته به این است که آن عنصر فوکوس کند/از دست بدهد .
228228
229- Their specials are:
230- - They do not bubble. Can use capturing state instead or ` focusin/focusout ` .
231- - Most elements do not support focus by default. Use ` tabindex ` to make anything focusable.
232229
233- The current focused element is available as ` document.activeElement ` .
230+
231+ استثناهای آنّا عبارتاند از:
232+ - آنها رفتار بالا رفتن حبابی ندارند. میتوانند به جایش از حالت capturing یا ` focusin/focusout ` استفاده کنند.
233+ - بیشتر elementها به طور پیشفرض از focus پشتیبانی نمیکنند. از ` tabindex ` استفاده کنید تا هر چیزی قابلیت focus داشته باشد.
234+
235+ عنصری که در حال حاضر روی آن focus شده است با ` document.activeElement ` قابل دسترسی است.
You can’t perform that action at this time.
0 commit comments