0👍
Inputs of type ‘text’ will return a string. Try changing the input type to number.
Otherwise, you could do this (with type text):
getKey(e) {
this.tempkey = parseInt(e.target.value)
}
getValue(e) {
this.tempValue = parseInt(e.target.value)
}
Source:stackexchange.com