person name, phone focus

This commit is contained in:
Yuri Kuznetsov
2025-06-27 11:25:51 +03:00
parent 2deb34cb3a
commit 3da606469f
2 changed files with 22 additions and 0 deletions
+11
View File
@@ -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;
+11
View File
@@ -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;