focus only on fields that are type text and number (#374)

pull/3759/head
elsiosanchez 2020-02-28 02:19:08 -04:00 committed by GitHub
parent 460f6b9ada
commit 48ca22482c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -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
}
}
}
})