diff --git a/webapp/src/components/labThingsComponents/inputFromSchema.vue b/webapp/src/components/labThingsComponents/inputFromSchema.vue index e3ecbd3f..3b726b29 100644 --- a/webapp/src/components/labThingsComponents/inputFromSchema.vue +++ b/webapp/src/components/labThingsComponents/inputFromSchema.vue @@ -28,7 +28,6 @@ type="number" :min="minimum" :max="maximum" - @wheel="handleSpiner" @input="grabFocus" @focusout="focusOut" @keydown="keyDown" @@ -378,6 +377,17 @@ export default { if (event.keyCode == 13) { this.sendValue(); } + // If numeric then capture Up and Down keys for incrementing. + if (this.dataType === "number") { + if (event.key === "ArrowUp") { + event.preventDefault(); + this.increment(1); + } + if (event.key === "ArrowDown") { + event.preventDefault(); + this.increment(-1); + } + } }, updateIsEdited: function () { this.isEdited =