From 4bc7c46c6278968c6a49685517469786d5e928f2 Mon Sep 17 00:00:00 2001 From: Rafal Dittwald Date: Fri, 28 Nov 2014 15:38:15 -0500 Subject: [PATCH 1/2] add note re: handling events in capture phase --- docs/docs/ref-05-events.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/ref-05-events.md b/docs/docs/ref-05-events.md index 8d93e4aaf8208..dcd274950e7d2 100644 --- a/docs/docs/ref-05-events.md +++ b/docs/docs/ref-05-events.md @@ -35,7 +35,7 @@ String type ## Supported Events React normalizes events so that they have consistent properties across -different browsers. +different browsers. The event handlers below are triggered by an event in the bubbling phase; to register an event handler for the capture phase, append "Capture" to the event name (for example: onClick -> onClickCapture). ### Clipboard Events From b3438c5f4b627357110a5bfa13bc9d46bfcc745b Mon Sep 17 00:00:00 2001 From: Rafal Dittwald Date: Mon, 1 Dec 2014 15:36:01 -0500 Subject: [PATCH 2/2] Update ref-05-events.md use backticks and change example into its own sentence --- docs/docs/ref-05-events.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/docs/ref-05-events.md b/docs/docs/ref-05-events.md index dcd274950e7d2..ab3efeb1cdfec 100644 --- a/docs/docs/ref-05-events.md +++ b/docs/docs/ref-05-events.md @@ -35,7 +35,9 @@ String type ## Supported Events React normalizes events so that they have consistent properties across -different browsers. The event handlers below are triggered by an event in the bubbling phase; to register an event handler for the capture phase, append "Capture" to the event name (for example: onClick -> onClickCapture). +different browsers. + +The event handlers below are triggered by an event in the bubbling phase. To register an event handler for the capture phase, append `Capture` to the event name; for example, instead of using `onClick`, you would use `onClickCapture` to handle the click event in the capture phase. ### Clipboard Events