focus only on fields that are type text and number (#374)
parent
460f6b9ada
commit
48ca22482c
|
@ -678,9 +678,11 @@ export default {
|
||||||
async setFocus() {
|
async setFocus() {
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
const fieldFocus = this.getterFieldList.find(itemField => {
|
const fieldFocus = this.getterFieldList.find(itemField => {
|
||||||
if (this.$refs.hasOwnProperty(itemField.columnName)) {
|
if (itemField.componentPath !== 'FieldSelect' && itemField.isDisplayed) {
|
||||||
if (fieldIsDisplayed(itemField) && !itemField.isReadOnly && itemField.isUpdateable) {
|
if (this.$refs.hasOwnProperty(itemField.columnName)) {
|
||||||
return true
|
if (fieldIsDisplayed(itemField) && !itemField.isReadOnly && itemField.isUpdateable) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue