fixing deploy all / close all
This commit is contained in:
parent
1bee6b4dff
commit
d4d101c672
|
|
@ -1,6 +1,7 @@
|
|||
function openAccordion(detailTag) {
|
||||
const wrapper = detailTag.querySelector('.homegrade-dynamic-accordeon__content-wrapper');
|
||||
const content = detailTag.querySelector('.homegrade-dynamic-accordeon__content');
|
||||
const wrapper = detailTag.querySelector('.homegrade-dynamic-accordeon__content-wrapper') ?? null;
|
||||
const content = detailTag.querySelector('.homegrade-dynamic-accordeon__content') ?? null;
|
||||
if (!wrapper || !content) return;
|
||||
|
||||
detailTag.setAttribute('open', 'true');
|
||||
detailTag.setAttribute('is_opening', '');
|
||||
|
|
@ -14,6 +15,7 @@ function openAccordion(detailTag) {
|
|||
}
|
||||
function closeAccordion(detailTag) {
|
||||
const wrapper = detailTag.querySelector('.homegrade-dynamic-accordeon__content-wrapper');
|
||||
if (!wrapper) return;
|
||||
wrapper.style.height = '0px';
|
||||
|
||||
setTimeout(() => {
|
||||
|
|
@ -30,7 +32,6 @@ function closeAllAccordions(detailTags) {
|
|||
closeAccordion(detailTag);
|
||||
});
|
||||
}
|
||||
|
||||
function handleAccordeonClick(detailTag) {
|
||||
let isOpen = detailTag.getAttribute('open');
|
||||
let isOpening = detailTag.getAttribute('is_opening');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user