Commit Graph

14 Commits

Author SHA1 Message Date
Jhon Mike
18ac8f7197 minor adjustments to the documentation (#3354) 2020-10-28 11:17:34 +03:00
Dan Abramov
16a03c0c60 Add note about onScroll in 17 2020-10-23 22:55:31 +01:00
Dylan Pierce
4a62c0ab77 More docs onFocus and onBlur events (#3044)
* More docs onFocus and onBlur events

Including more substantial documentation around the `onFocus` and `onBlur` events that aren't so common sense on first look.

* Update content/docs/reference-events.md

Co-authored-by: Darsh Shah <imdarshshah@gmail.com>

* Update reference-events.md

Adding an example of `relatedTarget` to determine orgin of onblur or onfocus events

* Update reference-events.md

* Update content/docs/reference-events.md

Fixing `onBlur` example bug.

Co-authored-by: Darsh Shah <imdarshshah@gmail.com>

* Update reference-events.md

Fixing spacing in `onBlur` `onFocus` examples and tagging them with `javascript`

* Update reference-events.md

* Update reference-events.md

* Update reference-events.md

Co-authored-by: Darsh Shah <imdarshshah@gmail.com>
Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2020-10-23 22:54:07 +01:00
Toru Kobayashi
64d067f2c0 Remove event pooling and SyntheticEvent#persist from documents (#3207)
* remove event pooling and SyntheticEvent#persist from documents

Syntheticevent#event exists in v17, but it does nothing at the version

* add a page for legacy event pooling for _redirects

* add a warning e.persist() is no longer pooled

* Update legacy-event-pooling.md

* docs: update a redirect link for event pooling

* Update legacy-event-pooling.md

* Update legacy-event-pooling.md

* Update reference-events.md

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2020-10-23 21:14:24 +01:00
Edgar Muentes
860a510d38 Clarify that synthetic events aren’t exactly the same as native events (#866)
Co-authored-by: Edgar Muentes <Edgar.Muentes@aexp.com>
Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
2020-08-23 19:33:54 +02:00
Abel Regalado
be8775d4b9 [docs] Add missing events to docs/events page (#2123)
* [docs] Add missing evens to docs/events page

Added missing `onReset` event to Form Events –– (https://reactjs.org/docs/events.html#form-events)
Created Generic Events subsection, and added `onError` & `onLoad` events –– (https://reactjs.org/docs/events.html#generic-events)

Based on @sophiebits suggestion in following thread:
https://github.com/facebook/react/issues/1718#issuecomment-122622933

* [docs] Add event subsection to #supported-events

Added Generic Events subsection under Supported Events (https://reactjs.org/docs/events.html#supported-events)
2020-03-09 13:58:23 +00:00
Steve Dodier-Lazaro
2c8f5695ba Add reference to persist to SyntheticEvent's API (#2274)
Since persist() is referred to in the doc as a method for disabling event pooling, that must mean it's part of the SyntheticEvent API.

I'm proposing to state it more explicitly so that there's no doubt for newcomers like me whether it is the SyntheticEvent or the actual JS event that has the method.
2020-03-09 13:41:13 +00:00
Nat Alison
25df15b83e reapply, correctly generating links 2019-02-06 18:03:29 -08:00
Nat Alison
dc1e5366e3 revert id adding 2019-02-06 18:00:52 -08:00
Nat Alison
3e49e971d0 add everything else again 2019-02-06 17:22:04 -08:00
Moti Zilberman
e5c3a9e4f0 Pointer events: Document tangentialPressure, twist (#1118)
Added to `SyntheticPointerEvent` in https://github.com/facebook/react/pull/13374
2018-09-08 14:32:58 +01:00
Philipp Spiess
a1f41f65a2 Don’t recommend PEP because it lacks features 2018-05-23 14:28:42 -07:00
Philipp Spiess
988a67739d Add section about Pointer Events
This PR adds a section about the state of Pointer Events in React.

This should be merged only if facebook/react#12507 is accepted as well.
2018-05-23 14:28:30 -07:00
Brian Vaughn
93aa551f1a Reorganized 'docs' folder 2017-10-04 14:48:45 -07:00