test
parent
2e7457e7bc
commit
3e1693ad5a
|
@ -110,6 +110,8 @@
|
|||
class CustomVariantDescriptionElement extends HTMLElement {
|
||||
constructor() {
|
||||
super();
|
||||
this.style.display = 'block';
|
||||
|
||||
// "variant" is the id of the variant
|
||||
|
||||
this.variant = this.getAttribute('variant');
|
||||
|
@ -130,6 +132,7 @@
|
|||
updateVariantDescription(id) {
|
||||
this.currentVariant = id;
|
||||
|
||||
console.log(this.variant, this.currentVariant);
|
||||
if(this.variant === this.currentVariant) {
|
||||
this.style.display = 'block';
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue