@ecl/ec-component-accordion
Advanced tools
Comparing version 2.9.0 to 2.10.0
import { queryOne, queryAll } from '@ecl/ec-base/helpers/dom'; | ||
export class Accordion { | ||
static autoInit(root, { ACCORDION: defaultOptions = {} } = {}) { | ||
const accordion = new Accordion(root, defaultOptions); | ||
accordion.init(); | ||
// eslint-disable-next-line no-param-reassign | ||
root.ECLAccordion = accordion; | ||
return accordion; | ||
} | ||
constructor( | ||
@@ -52,3 +60,3 @@ element, | ||
destroy() { | ||
if (this.attachClickListener && this.toggle) { | ||
if (this.attachClickListener && this.toggles) { | ||
this.toggles.forEach(toggle => { | ||
@@ -55,0 +63,0 @@ toggle.removeEventListener('click', this.handleClickOnToggle); |
@@ -5,3 +5,3 @@ { | ||
"license": "EUPL-1.1", | ||
"version": "2.9.0", | ||
"version": "2.10.0", | ||
"description": "ECL EC Accordion", | ||
@@ -13,4 +13,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"@ecl/ec-base": "^2.9.0", | ||
"@ecl/ec-component-button": "^2.9.0" | ||
"@ecl/ec-base": "^2.10.0", | ||
"@ecl/ec-component-button": "^2.10.0" | ||
}, | ||
@@ -33,3 +33,3 @@ "publishConfig": { | ||
], | ||
"gitHead": "78d443b1e119bb479cc51d83641a6a9a435bc2bf" | ||
"gitHead": "545c5c940fe2a67adcd540fafb374e01d165046f" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19418
83
Updated@ecl/ec-base@^2.10.0