Remove code about accordion in cernbase
Summary
The code about accordion in cernbase interferes with the code in the component [+/- signs]
Possible fixes
In cernbase.js, remove the code related to accordion:
// accordion open trail
if (jQuery('.accordion-cern').length > 0) {
jQuery('.accordion-cern').each(function () {
jQuery(this).find('.panel-collapse.collapse.in').parent('.panel').find('.panel-heading a').toggleClass('is-open');
jQuery(this).find('.panel-heading a').click(function () {
jQuery('.accordion-cern').find('.panel-heading a').removeClass('is-open');
jQuery(this).addClass('is-open');
})
});
jQuery('.accordion-cern .panel-heading a').click(function () {
if (jQuery(this).closest('.panel').find('.panel-collapse').hasClass('in')) {
jQuery(this).removeClass('is-open');
}
});
}
Related issues
- web-team/drupal/public/d8/modules/cern-display-formats#11 (closed): This issue fixes the issue in the component.
Edited by Konstantinos Platis