Skip to content

fix(ion-range): support @ionic/core >= 8.8.x knob class rename#15

Merged
distante merged 3 commits intomainfrom
ssd/update-to-latest-ionic
Mar 28, 2026
Merged

fix(ion-range): support @ionic/core >= 8.8.x knob class rename#15
distante merged 3 commits intomainfrom
ssd/update-to-latest-ionic

Conversation

@distante
Copy link
Copy Markdown
Owner

Summary

  • @ionic/core 8.8.x renamed the shadow-DOM knob CSS classes (range-knob-arange-knob-handle-a, range-knob-brange-knob-handle-b), causing ionRangeCypress.moveToValue() to throw "No Handle was found in the shadow root" on any project that upgraded Ionic.
  • Fixed by using comma-separated CSS selectors (e.g. .range-knob-handle-a, .range-knob-handle.range-knob-a) so both 8.7.x and 8.8.x are supported — no breaking change, peerDependency floor unchanged (>= 8.7.0).
  • Same selector update applied to the hydration-check tests in get-from-supported-selector.spec.ts.
  • devDependency bumped to ^8.8.0 to run the suite against the new Ionic version.

Verification

All 16 range.spec.ts tests and all 7 get-from-supported-selector.spec.ts tests pass against @ionic/core 8.8.x.

@ionic/core 8.8.x renamed shadow-DOM knob classes from
range-knob-a/range-knob-b to range-knob-handle-a/range-knob-handle-b.
Use comma-separated CSS selectors to match both old and new class names,
keeping @ionic/core 8.7.x support intact (no breaking change).

Bumps version to 1.1.1 and devDependency to ^8.8.0.
…bility

Ionic 8.8.x requires TypeScript 5+ (const type parameters in Stencil
runtime types). Upgrades typescript to ^5.0.0, typedoc to ^0.28.0,
ts-patch to ^3.0.0, and typescript-transform-paths to ^3.5.0.
Relaxes internal generic constraints from HTMLStencilElement to Element
to accommodate the autocorrect type change in HTMLIonInputElement 8.8.x.
@distante distante force-pushed the ssd/update-to-latest-ionic branch from 7a01501 to 0271f1e Compare March 28, 2026 10:24
@distante distante merged commit 8ed47e4 into main Mar 28, 2026
4 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.

1 participant