From 5a9ad3c0792b727eeed5b2467149c0a2593e1e39 Mon Sep 17 00:00:00 2001 From: ejbenke <5017358+ejbenke@users.noreply.github.com> Date: Tue, 1 Sep 2020 14:36:15 -0700 Subject: [PATCH] Enhancement: Enables user to click on header of an expanded accordion item to collapse it (instead of an expanded item only being collapsed when a new item is expanded) --- .../src/webparts/reactAccordion/components/ReactAccordion.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/react-accordion-section/src/webparts/reactAccordion/components/ReactAccordion.tsx b/samples/react-accordion-section/src/webparts/reactAccordion/components/ReactAccordion.tsx index 75e8dd3cc..9750cae9e 100644 --- a/samples/react-accordion-section/src/webparts/reactAccordion/components/ReactAccordion.tsx +++ b/samples/react-accordion-section/src/webparts/reactAccordion/components/ReactAccordion.tsx @@ -64,7 +64,7 @@ export default class ReactAccordion extends React.Component

{this.props.accordionTitle}

- + {this.state.items.map((item:any) => { return (