mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-29 16:15:51 +00:00
fix(frontend): Fix autosize within hidden components
This commit is contained in:
@@ -30,16 +30,7 @@ export const action = (node) => {
|
||||
}
|
||||
|
||||
const setInitialHeight = () => {
|
||||
if (hasInvisibleParent()) {
|
||||
const observer = new MutationObserver(() => {
|
||||
if (!hasInvisibleParent()) {
|
||||
adjustHeight()
|
||||
observer.disconnect()
|
||||
}
|
||||
})
|
||||
|
||||
observer.observe(node, { attributes: true, childList: true, subtree: true })
|
||||
} else {
|
||||
if (!hasInvisibleParent()) {
|
||||
adjustHeight()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user