Skip to content

Commit

Permalink
[enhancement #52] Answerable section is now always expanded
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Chopart committed Aug 6, 2021
1 parent b7f7854 commit 259ca73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Question.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export default class Question extends React.Component {

if (this.context.options.debugMode && !FormUtils.hasAnswer(question)) {
return (
<Accordion activeKey={this.state.expanded ? question['@id'] : undefined} className="answerable-section">
<Accordion activeKey={this.state.expanded ? question['@id'] : this.setState({expanded: true})} className="answerable-section">
<Card className="mb-3">
<Card.Header onClick={this._toggleCollapse} className={classNames(headerClassNames)}>
{this.renderAnswers()}
Expand Down

0 comments on commit 259ca73

Please sign in to comment.