window.CommonUtil.toFocusChildNode = function (elements) {
// e.g.
// elements = [
// '.common-content .****',
// '.common-content',
// ];
let focusEle = null;
for (let item of elements) {
let focusable = $(item).find(':focusable:visible:not(:disabled):not([aria-disabled="true"]):not([tabindex="-1"])');
if (focusable.length > 0) {
focusEle = focusable[0];
break;
}
}
focusEle && focusEle.focus();
}
版权属于:
Arthur
作品采用:
《
署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)
》许可协议授权
评论 (0)