person name, phone focus
This commit is contained in:
@@ -289,6 +289,17 @@ class PersonNameFieldView extends VarcharFieldView {
|
||||
|
||||
return name;
|
||||
}
|
||||
|
||||
focusOnInlineEdit() {
|
||||
/** @type {HTMLElement|null} */
|
||||
const input = this.element.querySelector('input.form-control[type="text"]');
|
||||
|
||||
if (!input) {
|
||||
return;
|
||||
}
|
||||
|
||||
input.focus({preventScroll: true});
|
||||
}
|
||||
}
|
||||
|
||||
export default PersonNameFieldView;
|
||||
|
||||
@@ -876,6 +876,17 @@ class PhoneFieldView extends VarcharFieldView {
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
focusOnInlineEdit() {
|
||||
/** @type {HTMLElement|null} */
|
||||
const input = this.element.querySelector('input.phone-number');
|
||||
|
||||
if (!input) {
|
||||
return;
|
||||
}
|
||||
|
||||
input.focus({preventScroll: true});
|
||||
}
|
||||
}
|
||||
|
||||
export default PhoneFieldView;
|
||||
|
||||
Reference in New Issue
Block a user