Skip to content

test(backdrop): add spec tests and rename the click handler - #31700

Open
thetaPC wants to merge 3 commits into
FW-6836-ionic-specfrom
FW-6836-cleanup
Open

thetaPC wants to merge 3 commits into
FW-6836-ionic-specfrom
FW-6836-cleanup

Conversation

@thetaPC

@thetaPC thetaPC commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Issue number: resolves internal


What is the current behavior?

ion-backdrop has no tests of its own. Its click handler is named onMouseDown and typed as a TouchEvent, left over from when it listened for touches.

What is the new behavior?

  • Renames the handler to onClick(ev: MouseEvent). It's internal, so nothing else changes
  • Adds spec tests for ionBackdropTap, tappable, stopPropagation and visible

Does this introduce a breaking change?

  • Yes
  • No

Other information

The tap tests fail if the tappable or stopPropagation check is removed or inverted.

@thetaPC
thetaPC added this pull request to stack #31699 November 5, 2026 19:30
@vercel

vercel Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ionic-framework Ready Ready Preview Nov 5, 2026 10:16pm UTC

Request Review

@thetaPC
thetaPC marked this pull request as ready for review November 5, 2026 22:41
@thetaPC
thetaPC requested a review from a team as a code owner November 5, 2026 22:41
@thetaPC
thetaPC requested a review from ShaneK November 5, 2026 22:41

This branch was successfully deployed

1 active deployment
Preview — 73ba0da0 Deployed Nov 5, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core @ionic/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant