update
This commit is contained in:
6
index.js
6
index.js
@@ -5,15 +5,14 @@ class IdmQuantityPicker{
|
|||||||
console.error("IdmQuantityPicker: container not found.");
|
console.error("IdmQuantityPicker: container not found.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
this.container=container;
|
||||||
const input = this.container.querySelector(".idm-quantity-picker__input");
|
const input = this.container.querySelector(".idm-quantity-picker__input");
|
||||||
if(!input){
|
if(!input){
|
||||||
console.error("IdmQuantityPicker: input not found");
|
console.error("IdmQuantityPicker: input not found");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.container=container;
|
|
||||||
this.input = input;
|
this.input = input;
|
||||||
|
|
||||||
this.min = min;
|
this.min = min;
|
||||||
this.max = max;
|
this.max = max;
|
||||||
this._value = Number.parseInt(input.value);
|
this._value = Number.parseInt(input.value);
|
||||||
@@ -44,7 +43,6 @@ class IdmQuantityPicker{
|
|||||||
}
|
}
|
||||||
|
|
||||||
handleMinus(){
|
handleMinus(){
|
||||||
console.log("minus");
|
|
||||||
this.value--;
|
this.value--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user