pull/1/head
Jan Umbach 2024-05-30 13:37:57 +02:00
parent e23c8c5c99
commit f41db106fd
1 changed files with 2 additions and 7 deletions

View File

@ -107,20 +107,15 @@
}
class CustomVariantDescriptionElement extends HTMLElement {
static get observedAttributes() { return ['class', 'style', 'id']; } // Add any other attributes you want to observe
class CustomVariantDescriptionElement extends HTMLDivElement {
constructor() {
super();
this.style.display = 'block';
// "variant" is the id of the variant
this.variant = this.getAttribute('variant');
this.currentVariant = null;
}
attributeChangedCallback(name, oldValue, newValue) {
this.removeAttribute(name);
}
initVariantDescription(id) {