Skip to content

Conversation

@dreamwasp
Copy link
Contributor

@dreamwasp dreamwasp commented Nov 10, 2025

Overview

Fixed PopoverContainer not closing when targets scroll out of view by checking all scrollable parents (including document.documentElement for iframes), added tests, and refactored some code

PR Checklist

  • Head to the DataTable story
  • See that when you open a menu, it now closes when scrolling away
  • Check out the full page story
  • See that when you open a menu, it closes when scrolling away

Testing Instructions

  1. Go to DataTable Sorting and filtering story
  2. See the menus now close on scroll down

@dreamwasp dreamwasp marked this pull request as ready for review November 10, 2025 16:45
@dreamwasp dreamwasp requested a review from a team as a code owner November 10, 2025 16:45
@nx-cloud
Copy link

nx-cloud bot commented Nov 10, 2025

View your CI Pipeline Execution ↗ for commit 5d7c608


☁️ Nx Cloud last updated this comment at 2025-11-12 16:00:44 UTC

@dreamwasp dreamwasp marked this pull request as draft November 11, 2025 18:11
@dreamwasp dreamwasp changed the title docs(DataTable): Add closeOnViewportExit fix(PopoverContainer): Add closeOnViewportExit Nov 11, 2025
@dreamwasp dreamwasp marked this pull request as ready for review November 11, 2025 20:57
@dreamwasp dreamwasp changed the title fix(PopoverContainer): Add closeOnViewportExit fix(PopoverContainer): Add all scrolling parents to closeOnViewportExit Nov 12, 2025
@dreamwasp dreamwasp marked this pull request as draft November 12, 2025 14:46
@codecademydev
Copy link
Collaborator

📬 Published Alpha Packages:

@codecademy/[email protected]
@codecademy/[email protected]
@codecademy/[email protected]

@github-actions
Copy link
Contributor

@dreamwasp dreamwasp marked this pull request as ready for review November 12, 2025 16:06
Copy link
Contributor

@LinKCoding LinKCoding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A lot of great clean up and tests!
🔥 🔥 🔥

@dreamwasp dreamwasp added the Ship It :shipit: Automerge this PR when possible label Nov 13, 2025
@codecademydev codecademydev merged commit f8d0ce5 into main Nov 13, 2025
19 of 20 checks passed
@codecademydev codecademydev removed the Ship It :shipit: Automerge this PR when possible label Nov 13, 2025
@codecademydev codecademydev deleted the cass-GMT-222-doc branch November 13, 2025 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants