Skip to content

Commit

Permalink
Fix answerable section collapsing
Browse files Browse the repository at this point in the history
  • Loading branch information
holubv committed May 4, 2021
1 parent 00372d0 commit 2102a8e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/components/AnswerableSectionComposite.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ export default class AnswerableSectionComposite extends Question {

constructor(props) {
super(props);

const toggleCollapseSuper = this._toggleCollapse;
this._toggleCollapse = (e) => {
let classList = e.target.classList;
if (!classList.contains('answer-content') && !classList.contains('card-header')) {
return;
}
toggleCollapseSuper();
}
}

_renderShowAdvanced() {
Expand Down

0 comments on commit 2102a8e

Please sign in to comment.