Fix grid filter bug when switching from 'equal' to 'between' verbs
and vice versa
This commit is contained in:
parent
c2227b306b
commit
c1f72e0d11
|
@ -28,6 +28,17 @@ const GridFilterNumericValue = {
|
|||
this.startValue = this.value
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
// when changing from e.g. 'equal' to 'between' filter verbs,
|
||||
// must proclaim new filter value, to reflect (lack of) range
|
||||
wantsRange(val) {
|
||||
if (val) {
|
||||
this.$emit('input', this.startValue + '|' + this.endValue)
|
||||
} else {
|
||||
this.$emit('input', this.startValue)
|
||||
}
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
focus() {
|
||||
this.$refs.startValue.focus()
|
||||
|
|
Loading…
Reference in a new issue