Don't use [ztabindex] in selector when finding metadata fields

This commit is contained in:
Dan Stillman 2024-05-11 03:47:37 -04:00
parent ffef57eed1
commit c01b3ae270

View file

@ -2284,7 +2284,7 @@
} }
focusField(fieldName) { focusField(fieldName) {
let field = this.querySelector(`[fieldname="${fieldName}"][ztabindex]`); let field = this.querySelector(`editable-text[fieldname="${fieldName}"]`);
if (!field) return false; if (!field) return false;
return this._focusNextField(field.getAttribute('ztabindex')); return this._focusNextField(field.getAttribute('ztabindex'));
} }