Skip to content

Translate reference-dom-elements.md - #152

Merged
sorousht merged 6 commits into
masterfrom
x1smind-DomElements
Jul 27, 2020
Merged

sorousht merged 6 commits into
masterfrom
x1smind-DomElements

Conversation

@sorousht

Copy link
Copy Markdown
Contributor

I continued @x1smind work #59

@sorousht
sorousht requested a review from rezvani2647 June 20, 2020 17:37
@netlify

netlify Bot commented Jun 20, 2020 •

Copy link
Copy Markdown

Deploy preview for fa-reactjs ready!

Built with commit f6929fa

https://deploy-preview-152--fa-reactjs.netlify.app

@sorousht
sorousht requested a review from seven-deuce June 26, 2020 14:56
@tesseralis tesseralis mentioned this pull request Jul 5, 2020
44 of 87 tasks

@seven-deuce seven-deuce left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ترجمه ی خوبی بود. من هم نظراتم رو نوشتم

Comment thread content/docs/reference-dom-elements.md Outdated
Comment thread content/docs/reference-dom-elements.md Outdated
### onChange {#onchange}

The `onChange` event behaves as you would expect it to: whenever a form field is changed, this event is fired. We intentionally do not use the existing browser behavior because `onChange` is a misnomer for its behavior and React relies on this event to handle user input in real time.
رویداد `onChange` رفتاری که از او انتظار می‌رود را دارد: هر وقت که یک فیلد از فرم تغییر کند، این رویداد به صدا در می‌آید. ما مخصوصا از رفتار موجود مرورگر استفاده نمی‌کنیم، چون `onChange` یک اشتباه لغتیست برای کاری که انجام میدهد و اینکه ری‌اکت به این رویداد برای رسیدگی بی‌درنگ به ورودی کاربر تکیه می‌کند.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

این نمونه از مواردی هست که برای انتقال ساده تر مفهوم به فارسی باید در ساختار درست برد:

ما عمدا از رفتار آن، آن طور که در مرورگر تعریف شده تبعیت نمی کنیم، چون onChange نامی اشتباه برای رفتارش دارد و ری‌اکت برای مدیریت زنده ی اطلاعات وارد شده توسط کاربر به آن اتکا دارد.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

انجام شد.

Comment thread content/docs/reference-dom-elements.md Outdated
### suppressContentEditableWarning {#suppresscontenteditablewarning}

Normally, there is a warning when an element with children is also marked as `contentEditable`, because it won't work. This attribute suppresses that warning. Don't use this unless you are building a library like [Draft.js](https://facebook.github.io/draft-js/) that manages `contentEditable` manually.
معمولا، هر وقت که یک المنت والد به عنوان `contentEditable` علامت‌ گذاری می‌شود، هشداری به صدا در می‌آید، چون مشکل ساز خواهد شد. این صفت باعث می‌شود تا آن هشدار مسکوت باقی بماند. از این استفاده نکنید، مگر اینکه یک کتابخانه ای دارید می‌سازید مثل [Draft.js](https://facebook.github.io/draft-js/) که خودش به صورت دستی `contentEditable` را مدیریت می‌کند.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

هشداری داده می شود چون کار نخواهد کرد.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

انجام شد.

@sorousht
sorousht requested a review from seven-deuce July 26, 2020 11:55
@sorousht
sorousht merged commit c3795a2 into master Jul 27, 2020
@delete-merged-branch
delete-merged-branch Bot deleted the x1smind-DomElements branch July 27, 2020 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants