chore: Merge branch 'main' of github.com:layui/layui

This commit is contained in:
贤心 2024-01-24 11:07:30 +08:00
commit fb190afc67

View File

@ -1758,22 +1758,6 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
lay.getStyleRules(style, function(item){
if (item.selectorText === ('.laytable-cell-'+ key)) {
callback(item);
/* Chrome DevTools iframe table
* closes https://gitee.com/layui/layui/issues/I8N08M
* 具体原因不明可能是初始操作 cssRules 触发了 DevTools inspect 的解析报错
* 后续若浏览器本身修复了该问题下述补丁也将会剔除
*/
(function PatcheToCssRulesInDevTools(){
if (self === parent) return;
var input = lay.elem('input', {
style: 'position: absolute; left: 0; top: 0; opacity: 0.01;'
});
document.body.appendChild(input);
input.focus();
document.body.removeChild(input);
})();
return true;
}
});