Skip to content

test(qwik): fix stop-propagation in the events e2e fixture and pin deferred-handler loader behavior - #8791

Closed
maiieul wants to merge 2 commits into
build/v2from
claude/events-stoppropagation-fixture
Closed

maiieul wants to merge 2 commits into
build/v2from
claude/events-stoppropagation-fixture

Conversation

@maiieul

@maiieul maiieul commented Jul 2, 2026 •

Copy link
Copy Markdown
Member

What is it?

  • Docs / tests / types / typos

Description

The events e2e fixture used ev.stopPropagation() inside an async onClick$, which Qwik doesn't support (it lands after the synchronous event-path walk) — it now uses the stoppropagation:click attribute. Also pins the stock loader behavior for deferred handlers with two regression tests. Found while working on #8745.

maiieul added 2 commits July 2, 2026 18:44
The #prevent-default-2 anchor called ev.stopPropagation() inside an async onClick$, which Qwik doesn't support — preventDefault/stopPropagation must be synchronous (via the preventdefault:/stoppropagation: attributes or sync$), so a call inside an async handler lands after the synchronous event-path walk. Use the stoppropagation:click attribute, like the #stop-propagation button, so the stop applies during the walk.
@maiieul
maiieul requested a review from a team as a code owner July 2, 2026 16:49
@changeset-bot

changeset-bot Bot commented Jul 2, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 8f45681

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@maiieul maiieul self-assigned this Jul 2, 2026
@maiieul maiieul moved this to Waiting For Review in Qwik Development Jul 2, 2026
@pkg-pr-new

pkg-pr-new Bot commented Jul 2, 2026

Copy link
Copy Markdown

Open in StackBlitz

@qwik.dev/core

npm i https://pkg.pr.new/QwikDev/qwik/@qwik.dev/core@8791

@qwik.dev/router

npm i https://pkg.pr.new/QwikDev/qwik/@qwik.dev/router@8791

eslint-plugin-qwik

npm i https://pkg.pr.new/QwikDev/qwik/eslint-plugin-qwik@8791

create-qwik

npm i https://pkg.pr.new/QwikDev/qwik/create-qwik@8791

@qwik.dev/optimizer

npm i https://pkg.pr.new/QwikDev/qwik/@qwik.dev/optimizer@8791

@qwik.dev/devtools

npm i https://pkg.pr.new/QwikDev/qwik/@qwik.dev/devtools@8791

commit: 8f45681

@github-actions

github-actions Bot commented Jul 2, 2026 •

Copy link
Copy Markdown
Contributor
built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
qwik-docs ✅ Ready (View Log) Visit Preview 8f45681

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant