mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [affix] update logic caused infinite loop (#23599)
* fix(components): [affix] update logic caused infinite loop * fix: update * fix: update
This commit is contained in:
@@ -73,6 +73,7 @@ const teleportDisabled = computed(() => {
|
||||
|
||||
const rootStyle = computed<CSSProperties>(() => {
|
||||
return {
|
||||
display: 'flow-root', // https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Display/Formatting_contexts#explicitly_creating_a_bfc_using_display_flow-root
|
||||
height: fixed.value ? `${rootHeight.value}px` : '',
|
||||
width: fixed.value ? `${rootWidth.value}px` : '',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user