Skip to content

fix: [BACKPORT] restore touch pass-through for no-overlay surveys (1.1.1) - #47

Merged
pandeymangg merged 2 commits into
release/1.1from
anshuman/backport-touch-passthrough-1.1
Sep 3, 2026
Merged

fix: [BACKPORT] restore touch pass-through for no-overlay surveys (1.1.1)#47
pandeymangg merged 2 commits into
release/1.1from
anshuman/backport-touch-passthrough-1.1

Conversation

@pandeymangg

Copy link
Copy Markdown
Contributor

Backport of #46 onto release/1.1, plus the 1.1.1 bump.

main also carries the embedded-data feature (#44), which is a new public API and so a minor. Shipping the touch fix on its own from the release branch keeps this a patch.

Contents

  • 4b67b0e cherry-picked — applied clean, one file (survey_html.dart), no conflicts
  • Version bump to 1.1.1 + changelog entry

Local checks: format-check, analyze, 308 SDK tests, 6 playground tests, publish dry-run — all clean.

After merge: tag 1.1.1 on release/1.1 and push to trigger the publish workflow, then merge release/1.1 back into main with a merge commit (not squash) so main stays in sync.

The card-geometry probe matched `#fbjs [role="dialog"][aria-modal="true"]`.
The surveys runtime now sets `aria-modal` only when a survey has a backdrop,
so the selector matched nothing in exactly the no-overlay case the pointer
mask exists for. `fbCardRect()` returned null forever, the reported rect
stayed null, and `_RenderPointerMask` rejected pointers across the whole
WebView — the survey card became untappable.

Match on `role="dialog"` alone. It is on the card in every overlay mode, and
scoping to `#fbjs` still keeps the probe off the full-screen wrapper.

The runtime is loaded from the server at render time, so this reached every
host on a current server without an SDK release. Nothing here can be covered
by a test: the probe is a JS string inside Dart that the widget tests never
execute (they inject the geometry event directly). The broken state was
reproduced by hand on a local host app; the fix needs the same check before
merge.

(cherry picked from commit 4b67b0e)
@pandeymangg pandeymangg changed the title fix: restore touch pass-through for no-overlay surveys (1.1.1) fix: [BACKPORT] restore touch pass-through for no-overlay surveys (1.1.1) Sep 3, 2026
@pandeymangg
pandeymangg requested a review from Dhruwang September 3, 2026 10:21
@sonarqubecloud

sonarqubecloud Bot commented Sep 3, 2026

Copy link
Copy Markdown

@pandeymangg
pandeymangg merged commit f659217 into release/1.1 Sep 3, 2026
10 checks passed
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.

2 participants