mirror of https://github.com/ElemeFE/element
Loading: fix sticky DOM error (#22087)
Co-authored-by: zhaojinghui <zhaojinghui@haodf.com>pull/18301/merge
parent
3186d22428
commit
336a49baa1
|
@ -64,7 +64,7 @@ loadingDirective.install = Vue => {
|
|||
el.mask.style[property] = el.maskStyle[property];
|
||||
});
|
||||
|
||||
if (el.originalPosition !== 'absolute' && el.originalPosition !== 'fixed') {
|
||||
if (el.originalPosition !== 'absolute' && el.originalPosition !== 'fixed' && el.originalPosition !== 'sticky') {
|
||||
addClass(parent, 'el-loading-parent--relative');
|
||||
}
|
||||
if (binding.modifiers.fullscreen && binding.modifiers.lock) {
|
||||
|
|
|
@ -87,7 +87,7 @@ const Loading = (options = {}) => {
|
|||
});
|
||||
|
||||
addStyle(options, parent, instance);
|
||||
if (instance.originalPosition !== 'absolute' && instance.originalPosition !== 'fixed') {
|
||||
if (instance.originalPosition !== 'absolute' && instance.originalPosition !== 'fixed' && instance.originalPosition !== 'sticky') {
|
||||
addClass(parent, 'el-loading-parent--relative');
|
||||
}
|
||||
if (options.fullscreen && options.lock) {
|
||||
|
|
Loading…
Reference in New Issue