pull/1/head
Jan Umbach 2024-05-30 13:34:00 +02:00
parent 2e7457e7bc
commit 3e1693ad5a
1 changed files with 3 additions and 0 deletions

View File

@ -110,6 +110,8 @@
class CustomVariantDescriptionElement extends HTMLElement { class CustomVariantDescriptionElement extends HTMLElement {
constructor() { constructor() {
super(); super();
this.style.display = 'block';
// "variant" is the id of the variant // "variant" is the id of the variant
this.variant = this.getAttribute('variant'); this.variant = this.getAttribute('variant');
@ -130,6 +132,7 @@
updateVariantDescription(id) { updateVariantDescription(id) {
this.currentVariant = id; this.currentVariant = id;
console.log(this.variant, this.currentVariant);
if(this.variant === this.currentVariant) { if(this.variant === this.currentVariant) {
this.style.display = 'block'; this.style.display = 'block';
} else { } else {