Skip to content

Commit

Permalink
fix: unable to set heater target temperature (#828)
Browse files Browse the repository at this point in the history
fixes #827
  • Loading branch information
dw-0 authored May 19, 2022
1 parent ad6015b commit 090cda6
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions src/components/inputs/TemperatureInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,19 @@

<template>
<div class="d-flex align-center">
<v-text-field
v-model="value"
suffix="°C"
type="number"
dense
outlined
hide-details
hide-spin-buttons
class="_temp-input pr-1"
@blur="value = target"
@focus="$event.target.select()"
@keyup.enter="setTemps"></v-text-field>
<form @submit.prevent="setTemps">
<v-text-field
v-model="value"
suffix="°C"
type="number"
dense
outlined
hide-details
hide-spin-buttons
class="_temp-input pr-1"
@blur="value = target"
@focus="$event.target.select()"></v-text-field>
</form>
<v-menu v-if="presets" :offset-y="true" left title="Preheat">
<template #activator="{ on, attrs }">
<v-btn
Expand Down

0 comments on commit 090cda6

Please sign in to comment.