Skip to content

fix: allow UI polling while a modal component is open (#24834) (CP: 25.2)#24844

Merged
vaadin-bot merged 1 commit into
25.2from
cherry-pick-24834-to-25.2-1782717331416
Jun 29, 2026
Merged

fix: allow UI polling while a modal component is open (#24834) (CP: 25.2)#24844
vaadin-bot merged 1 commit into
25.2from
cherry-pick-24834-to-25.2-1782717331416

Conversation

@vaadin-bot

Copy link
Copy Markdown
Collaborator

This PR cherry-picks changes from the original PR #24834 to branch 25.2.

Original PR description

What changed

Poll listeners registered through PollNotifier.addPollListener are now registered with DomListenerRegistration::allowInert, so they continue to fire even when a modal component makes the UI inert.

A unit test in UITest verifies that the ui-poll listener keeps being invoked while a modal curtain is active.

Why

UI polling is a global, UI-level feature. It is not tied to any specific component and does not send user-controlled data to the server, so it should not be blocked by a modality curtain. Previously, opening a modal dialog caused poll events to be dropped with an "Ignored listener invocation for ui-poll event ... inert" message, effectively stopping polling for the duration the modal was open.

Fixes #20917

## What changed

Poll listeners registered through `PollNotifier.addPollListener` are now
registered with `DomListenerRegistration::allowInert`, so they continue
to fire even when a modal component makes the UI inert.

A unit test in `UITest` verifies that the `ui-poll` listener keeps being
invoked while a modal curtain is active.

## Why

UI polling is a global, UI-level feature. It is not tied to any specific
component and does not send user-controlled data to the server, so it
should not be blocked by a modality curtain. Previously, opening a modal
dialog caused poll events to be dropped with an `"Ignored listener
invocation for ui-poll event ... inert"` message, effectively stopping
polling for the duration the modal was open.

Fixes #20917

Co-authored-by: totally-not-ai[bot] <290682512+totally-not-ai[bot]@users.noreply.github.com>
@vaadin-bot

Copy link
Copy Markdown
Collaborator Author

This PR is eligible for auto-merging policy, so it has been approved automatically. If there are pending conditions, auto merge (with 'squash' method) has been enabled for this PR [Message is sent from bot]

@vaadin-bot vaadin-bot enabled auto-merge (squash) June 29, 2026 07:25
@github-actions

Copy link
Copy Markdown
Contributor

Test Results

 1 452 files  ±0   1 452 suites  ±0   1h 25m 24s ⏱️ - 1m 50s
10 279 tests +1  10 211 ✅ +1  68 💤 ±0  0 ❌ ±0 
10 751 runs  +1  10 682 ✅ +1  69 💤 ±0  0 ❌ ±0 

Results for commit 2bc0bfc. ± Comparison against base commit 6814f8d.

@vaadin-bot vaadin-bot merged commit f0e0085 into 25.2 Jun 29, 2026
31 checks passed
@vaadin-bot vaadin-bot deleted the cherry-pick-24834-to-25.2-1782717331416 branch June 29, 2026 07:29
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.

2 participants