Skip to content

Commit

Permalink
UI Text Input - Disregard concept of "lastValue"
Browse files Browse the repository at this point in the history
  • Loading branch information
joepavitt committed Jan 22, 2024
1 parent 986b0ee commit f6a20a6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ui/src/widgets/ui-text-input/UITextInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export default {
},
data () {
return {
lastSent: null,
delayTimer: null
}
},
Expand Down Expand Up @@ -65,7 +64,6 @@ export default {
methods: {
send: function () {
this.$socket.emit('widget-change', this.id, this.value)
this.lastSent = this.value
},
onChange: function () {
if (this.props.sendOnDelay) {
Expand All @@ -78,7 +76,7 @@ export default {
}
},
onBlur: function () {
if (this.props.sendOnBlur && this.lastSent !== this.value && this.value) {
if (this.props.sendOnBlur && this.value) {
// check if this value has already been sent, as not going to want it sent twice
this.send()
}
Expand Down

0 comments on commit f6a20a6

Please sign in to comment.