Skip to content

Add parent portal hook and send close event from overlay#46

Draft
ObservedObserver wants to merge 1 commit intomainfrom
codex/add-useparentportal-utility-and-update-dialogportal
Draft

Add parent portal hook and send close event from overlay#46
ObservedObserver wants to merge 1 commit intomainfrom
codex/add-useparentportal-utility-and-update-dialogportal

Conversation

@ObservedObserver
Copy link
Copy Markdown
Owner

Summary

  • create useParentPortal hook that mounts a container in window.parent.document
  • use that container for dialog portals
  • emit Streamlit.setComponentValue({confirm:false, open:false}) when the dialog overlay is clicked

Testing

  • yarn lint (fails: This package doesn't seem to be present in your lockfile)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant