Skip to content

fix(input, select, textarea): support native controls inside shadow roots in click controller - #31669

Merged
ShaneK merged 1 commit into
nextfrom
FW-7802
Oct 30, 2026
Merged

ShaneK merged 1 commit into
nextfrom
FW-7802

Conversation

@ShaneK

@ShaneK ShaneK commented Oct 29, 2026

Copy link
Copy Markdown
Member

Issue number: internal


What is the current behavior?

Currently, createClickController can't handle a native control inside the host's shadow root, because it matches the control's click on ev.target and a shadow host only ever sees itself as the target. So ion-textarea keeps its own copy of the slotted click and focus rejection logic, which a slotted control calling stopPropagation() leaves armed.

What is the new behavior?

The controller now matches the control through the composed path. A control in the shadow root keeps its own click and only the duplicate after a slotted click is dropped, while light DOM controls like ion-input work the same as before. Focus rejection moved into the controller with capture phase disarm listeners, the controller has a destroy() now, and ion-textarea uses it instead of its own copy.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Examples:

@ShaneK
ShaneK requested a review from a team as a code owner October 29, 2026 15:13
@ShaneK
ShaneK requested a review from thetaPC October 29, 2026 15:13
@vercel

vercel Bot commented Oct 29, 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 Oct 29, 2026 3:13pm UTC

Request Review

@github-actions github-actions Bot added the package: core @ionic/core package label Oct 29, 2026

@thetaPC thetaPC left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@ShaneK
ShaneK merged commit cf6ee28 into next Oct 30, 2026
99 of 101 checks passed
@ShaneK
ShaneK deleted the FW-7802 branch October 30, 2026 17:37

This branch was successfully deployed

1 active deployment
Preview — 9abe64ba Deployed Oct 29, 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.

2 participants