fix: only update / send temp commands on blur if they are changed

Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
Stefan Dej committed 2022-01-06 13:05:03 +01:00
1 parent 39dbebb2d2
commit ec67ab3033
1 file changed
+1 -1
+1 -1
View File
@@ -59,7 +59,7 @@ export default class ToolInput extends Mixins(BaseMixin) {
}
onBlur(event: any) {
if ('target' in event && event.target && 'value' in event.target) {
if ('target' in event && event.target && 'value' in event.target && this.value !== event.target.value) {
this.value = event.target.value ?? this.value
this.setTemps()
}