mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-11 05:11:59 +08:00
focus only on fields that are type text and number (#374)
This commit is contained in:
parent
460f6b9ada
commit
48ca22482c
@ -678,9 +678,11 @@ export default {
|
||||
async setFocus() {
|
||||
return new Promise(resolve => {
|
||||
const fieldFocus = this.getterFieldList.find(itemField => {
|
||||
if (this.$refs.hasOwnProperty(itemField.columnName)) {
|
||||
if (fieldIsDisplayed(itemField) && !itemField.isReadOnly && itemField.isUpdateable) {
|
||||
return true
|
||||
if (itemField.componentPath !== 'FieldSelect' && itemField.isDisplayed) {
|
||||
if (this.$refs.hasOwnProperty(itemField.columnName)) {
|
||||
if (fieldIsDisplayed(itemField) && !itemField.isReadOnly && itemField.isUpdateable) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user