Skip to content

fix(angular): add missing inputs to standalone components - #31869

Open
MAmmaadTehseen wants to merge 1 commit into
ionic-team:mainfrom
MAmmaadTehseen:fix/30901-standalone-inputs
Open

MAmmaadTehseen wants to merge 1 commit into
ionic-team:mainfrom
MAmmaadTehseen:fix/30901-standalone-inputs

Conversation

@MAmmaadTehseen

Copy link
Copy Markdown
Contributor

Issue number: resolves #30901


What is the current behavior?

The hand-written standalone proxies do not list every component property in their inputs, so Angular rejects bindings for the missing ones at build time with NG8002 (e.g. clearInputIcon on ion-input). IonicModule apps are unaffected.

What is the new behavior?

The missing properties are added to the standalone input arrays, so bindings compile and reach the components. Types already come from the Components interfaces.

  • ion-checkbox: alignment, required
  • ion-input: clearInputIcon
  • ion-searchbar: autocapitalize, maxlength, minlength
  • ion-select: required
  • ion-toggle: alignment, required

Does this introduce a breaking change?

  • Yes
  • No

Other information

Run locally on the ng21 test app (core and packages/angular built and synced):

  • New standalone-inputs.spec.ts (5 tests) verifies the bound values on the elements, including the rendered clear icon: all pass.
  • Without the fix the test app build fails with NG8002 for each missing binding.
  • Existing inputs, icon, value-accessors, validation specs pass; full standalone suite 115/115 with CI settings (workers=1). The pre-existing modal-custom-injector spec flakily times out in parallel mode; passes alone and with CI settings.
  • packages/angular: build, tests, lint, prettier pass.

Not run: the other test apps (ng18, ng19, ng20, ng22, ng22-zone) and the non-standalone suites.

Add component properties that were missing from the hand-written
standalone proxies, so Angular accepts them as property bindings:

- ion-checkbox: alignment, required
- ion-input: clearInputIcon
- ion-searchbar: autocapitalize, maxlength, minlength
- ion-select: required
- ion-toggle: alignment, required

The types already come from the Components interfaces, so only the
input name arrays needed updating.

Fixes ionic-team#30901
@MAmmaadTehseen
MAmmaadTehseen requested a review from a team as a code owner December 4, 2026 12:47
@vercel

vercel Bot commented Dec 4, 2026

Copy link
Copy Markdown

@MAmmaadTehseen is attempting to deploy a commit to the Ionic Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
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.

bug: Ion Input ClearInputIcon not working - Angular

1 participant