WTTJ/welcome-ui

Modal: TypeError due to null property access

simon-hv opened this issue · 0 comments

For which component?

Modal

Description

I have the following error when trying to display a modal:
Screenshot 2023-08-10 at 13 17 53

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