Skip to content

Commit

Permalink
fixed bug#47
Browse files Browse the repository at this point in the history
  • Loading branch information
Gowtami committed Oct 28, 2023
1 parent b401519 commit 6a6b34e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion blocks/accordion/accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ export default function decorate(block) {
faqRows.forEach((row) => {
const faqQuestion = [...row.children][0];
const faqAnswer = [...row.children][1];

if (row.children[0].textContent === '') {
row.remove();

Check failure on line 9 in blocks/accordion/accordion.js

View workflow job for this annotation

GitHub Actions / build

Expected indentation of 6 spaces but found 8
} else {
faqQuestion.classList.add('faq-question');

Check failure on line 11 in blocks/accordion/accordion.js

View workflow job for this annotation

GitHub Actions / build

Expected indentation of 6 spaces but found 4
faqAnswer.classList.add('faq-answer');

Check failure on line 12 in blocks/accordion/accordion.js

View workflow job for this annotation

GitHub Actions / build

Expected indentation of 6 spaces but found 4

Expand All @@ -29,5 +31,6 @@ export default function decorate(block) {
faqQuestion.classList.remove('active');
faqAnswer.classList.remove('active');
faqAnswer.style.maxHeight = '0';
}
});
}

0 comments on commit 6a6b34e

Please sign in to comment.