Skip to content

fix(ui5-popover): close the popover once it is out of the viewport#13200

Open
duygu-rmdn wants to merge 8 commits intomainfrom
prev_popover_overlap
Open

fix(ui5-popover): close the popover once it is out of the viewport#13200
duygu-rmdn wants to merge 8 commits intomainfrom
prev_popover_overlap

Conversation

@duygu-rmdn
Copy link
Member

@duygu-rmdn duygu-rmdn commented Mar 5, 2026

fixes: #13158

After this change is merged, the Popover methods shouldCloseDueToOverflow, shouldCloseDueToNoOpener, and isOpenerOutsideViewport can be removed; however, for traceability purposes, this should be done in a separate change.

@ui5-webcomponents-bot
Copy link
Collaborator

ui5-webcomponents-bot commented Mar 5, 2026

@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview March 5, 2026 14:46 Inactive
@duygu-rmdn duygu-rmdn requested review from a team and removed request for a team March 5, 2026 14:46
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview March 6, 2026 13:04 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview March 6, 2026 15:14 Inactive
@TeodorTaushanov TeodorTaushanov self-requested a review March 11, 2026 14:14
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview March 11, 2026 14:20 Inactive
@duygu-rmdn duygu-rmdn requested review from a team, alexandar-mitsev and dimovpetar March 12, 2026 11:42
}

/**
* Callback invoked when the opener element's intersection changes.
Copy link

Choose a reason for hiding this comment

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

Suggested change
* Callback invoked when the opener element's intersection changes.
* Callback invoked when the opener element's intersection status changes.


/**
* Callback invoked when the opener element's intersection changes.
* Closes popover when opener is out of view.
Copy link

Choose a reason for hiding this comment

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

Suggested change
* Closes popover when opener is out of view.
* Closes the popover when the opener is no longer visible.

? no longer visible in the viewport. ?

}

/**
* Stops observing and cleans up the IntersectionObserver.
Copy link

Choose a reason for hiding this comment

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

Suggested change
* Stops observing and cleans up the IntersectionObserver.
* Stops observing the opener element and cleans up the IntersectionObserver instance.

@duygu-rmdn duygu-rmdn requested a review from a team March 12, 2026 13:07
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.

valueStateMessage Styling issue

4 participants