Repository navigation
Translate reference-dom-elements.md - #152
Merged
Merged
Conversation
… into x1smind-DomElements
|
Deploy preview for fa-reactjs ready! Built with commit f6929fa |
44 of 87 tasks
seven-deuce
reviewed
Jul 20, 2020
seven-deuce
left a comment
Contributor
There was a problem hiding this comment.
ترجمه ی خوبی بود. من هم نظراتم رو نوشتم
| ### 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` یک اشتباه لغتیست برای کاری که انجام میدهد و اینکه ریاکت به این رویداد برای رسیدگی بیدرنگ به ورودی کاربر تکیه میکند. |
Contributor
There was a problem hiding this comment.
این نمونه از مواردی هست که برای انتقال ساده تر مفهوم به فارسی باید در ساختار درست برد:
ما عمدا از رفتار آن، آن طور که در مرورگر تعریف شده تبعیت نمی کنیم، چون onChange نامی اشتباه برای رفتارش دارد و ریاکت برای مدیریت زنده ی اطلاعات وارد شده توسط کاربر به آن اتکا دارد.
| ### 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` را مدیریت میکند. |
Contributor
There was a problem hiding this comment.
هشداری داده می شود چون کار نخواهد کرد.
seven-deuce
approved these changes
Jul 27, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I continued @x1smind work #59