Merge pull request #7427 from dataease/pr@dev@fix_selector_filter
fix: 下拉过滤器设置首项和必填删除过滤器视图未更新
This commit is contained in:
commit
497e85833d
@ -362,15 +362,17 @@ export default {
|
||||
resetDefaultValue(ele) {
|
||||
const id = ele.id
|
||||
const eleVal = ele.options.value.toString()
|
||||
if (this.inDraw && this.manualModify && this.element.id === id && this.value.toString() !== eleVal && this.defaultValueStr === eleVal) {
|
||||
if (this.inDraw && this.manualModify && this.element.id === id) {
|
||||
if (this.selectFirst) {
|
||||
this.fillFirstValue()
|
||||
this.firstChange(this.value)
|
||||
return
|
||||
}
|
||||
if (this.value.toString() !== eleVal && this.defaultValueStr === eleVal) {
|
||||
this.value = this.fillValueDerfault()
|
||||
this.changeValue(this.value)
|
||||
}
|
||||
}
|
||||
},
|
||||
onBlur() {
|
||||
// this.onFocus = false
|
||||
|
||||
Loading…
Reference in New Issue
Block a user