Merge pull request #1472 from ejbenke/dev

Enhancement: Enables user to click on header of an expanded accordion…
This commit is contained in:
Hugo Bernier 2020-09-02 22:51:20 -04:00 committed by GitHub
commit 3bacbf7d6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View File

@ -52,11 +52,11 @@ SPFx Collapsible Accordion Section|[Erik Benke](https://github.com/ejbenke) ([@e
Version|Date|Comments Version|Date|Comments
-------|----|-------- -------|----|--------
1.0|August 14, 2019|Initial release 1.0|August 14, 2019|Initial release
1.1|September 19, 2019|Minor updates, adding to Github 1.1|September 19, 2019|Minor updates, adding to GitHub
1.2|April 15, 2020|Added Polyfills for IE11 compatibility 1.2|April 15, 2020|Added Polyfills for IE11 compatibility
1.3|July 10, 2020|Adding Rich Text support for Content panels 1.3|July 10, 2020|Adding Rich Text support for Content panels
1.4|July 10, 2020|Upgraded to SPFx 1.10. 1.4|July 10, 2020|Upgraded to SPFx 1.10.
1.5|September 1, 2020|Adds ability to click on expanded section headers to collapse accordions
## Disclaimer ## Disclaimer

View File

@ -3,7 +3,7 @@
"solution": { "solution": {
"name": "Accordion Section FAQ Builder", "name": "Accordion Section FAQ Builder",
"id": "bf6fa974-fd40-45a3-80e9-e826abe025b9", "id": "bf6fa974-fd40-45a3-80e9-e826abe025b9",
"version": "1.3.0.0", "version": "1.5.0.0",
"includeClientSideAssets": true, "includeClientSideAssets": true,
"skipFeatureDeployment": true "skipFeatureDeployment": true
}, },

View File

@ -1,6 +1,6 @@
{ {
"name": "react-accordion", "name": "react-accordion",
"version": "0.0.1", "version": "1.5.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,7 +1,7 @@
{ {
"name": "react-accordion", "name": "react-accordion",
"main": "lib/index.js", "main": "lib/index.js",
"version": "0.0.1", "version": "1.5.0",
"private": true, "private": true,
"engines": { "engines": {
"node": ">=0.10.0" "node": ">=0.10.0"

View File

@ -64,7 +64,7 @@ export default class ReactAccordion extends React.Component<IReactAccordionProps
{listSelected && {listSelected &&
<div> <div>
<h2>{this.props.accordionTitle}</h2> <h2>{this.props.accordionTitle}</h2>
<Accordion> <Accordion allowZeroExpanded>
{this.state.items.map((item:any) => { {this.state.items.map((item:any) => {
return ( return (
<AccordionItem> <AccordionItem>