Modal: TypeError due to null property access
simon-hv opened this issue · 0 comments
simon-hv commented
For which component?
Modal
Description
I have the following error when trying to display a modal:
To fix this, maybe we could edit the useEffect hook in Content.tsx
to:
useEffect(() => {
if (!open) {
setBorderOnFooter(false)
} else if (contentElement) {
setBorderOnFooter(contentElement.scrollHeight > contentElement.offsetHeight)
}
}, [store, open, contentElement])
Welcome UI Version
5.0.0-alpha.46
Browser
Version 115.0
Operating System
MacOS