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