Skip to content

Conversation

duygu-rmdn
Copy link
Contributor

fixes: #12225

@duygu-rmdn duygu-rmdn requested a review from a team September 1, 2025 13:17
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes an issue where the ResponsivePopover host element could stay visually open even when not intended to be visible on non-mobile devices. The fix refactors the popup opening logic to properly handle different device types.

  • Extracts popup opening logic into a reusable onEnterDOMOpen() method in the base Popup class
  • Overrides the method in ResponsivePopover to handle phone vs non-phone device differences
  • Adds test coverage for the dialog visibility behavior on mobile devices

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
packages/main/src/Popup.ts Refactors onEnterDOM() to extract popup opening logic into separate onEnterDOMOpen() method
packages/main/src/ResponsivePopover.ts Overrides onEnterDOMOpen() to only show popover on non-phone devices when open
packages/main/cypress/specs/ResponsivePopover.mobile.cy.tsx Changes test setup from before() to beforeEach() and adds test for dialog visibility

Copy link
Contributor

@TeodorTaushanov TeodorTaushanov left a comment

Choose a reason for hiding this comment

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

Maybe:
fix(ui5-responsive-popover): fix open/close state, when initially open

Add D Stoev as reviewer

@duygu-rmdn duygu-rmdn requested a review from Stoev September 2, 2025 13:43
@duygu-rmdn duygu-rmdn changed the title fix(ui5-responsive-popover): prevent host element from staying open fix(ui5-responsive-popover): fix open/close state, when initially open Sep 2, 2025
@duygu-rmdn duygu-rmdn merged commit 5b269ed into main Sep 3, 2025
19 of 20 checks passed
@duygu-rmdn duygu-rmdn deleted the rpo_host_el_open branch September 3, 2025 06:54
@ui5-webcomponents-bot
Copy link
Collaborator

🎉 This PR is included in version v2.14.0-rc.7 🎉

The release is available on v2.14.0-rc.7

Your semantic-release bot 📦🚀

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.

[ui5-responsive-popover]: RPO's host element remains open
3 participants