From 82c4b5249675f4fffc7056e5fb105c65457dafc2 Mon Sep 17 00:00:00 2001 From: zombiej Date: Thu, 7 Mar 2019 11:50:13 +0800 Subject: [PATCH 1/2] updat demo --- .../__tests__/__snapshots__/demo.test.js.snap | 3 +++ components/collapse/demo/extra.md | 15 ++++++++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/components/collapse/__tests__/__snapshots__/demo.test.js.snap b/components/collapse/__tests__/__snapshots__/demo.test.js.snap index a73ef31b50..01ed1da877 100644 --- a/components/collapse/__tests__/__snapshots__/demo.test.js.snap +++ b/components/collapse/__tests__/__snapshots__/demo.test.js.snap @@ -477,6 +477,7 @@ exports[`renders ./components/collapse/demo/extra.md correctly 1`] = `
{text}
- }> +
{text}
- }> +
{text}
, From 091ec456624d8aaa060ff2597e8431528215affb Mon Sep 17 00:00:00 2001 From: zombiej Date: Thu, 7 Mar 2019 12:03:14 +0800 Subject: [PATCH 2/2] add comment --- components/collapse/demo/extra.md | 1 + 1 file changed, 1 insertion(+) diff --git a/components/collapse/demo/extra.md b/components/collapse/demo/extra.md index d7321888cc..4d86778a8c 100644 --- a/components/collapse/demo/extra.md +++ b/components/collapse/demo/extra.md @@ -32,6 +32,7 @@ const genExtra = () => ( { + // If you don't want click extra trigger collapse, you can prevent this: event.stopPropagation(); }} />