test
parent
2e7457e7bc
commit
3e1693ad5a
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue