Repository navigation
fix(angular): add missing inputs to standalone components - #31869
Open
MAmmaadTehseen wants to merge 1 commit into
Open
MAmmaadTehseen wants to merge 1 commit into
MAmmaadTehseen wants to merge 1 commit into
Conversation
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 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.clearInputIcononion-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
Componentsinterfaces.ion-checkbox:alignment,requiredion-input:clearInputIconion-searchbar:autocapitalize,maxlength,minlengthion-select:requiredion-toggle:alignment,requiredDoes this introduce a breaking change?
Other information
Run locally on the ng21 test app (core and packages/angular built and synced):
standalone-inputs.spec.ts(5 tests) verifies the bound values on the elements, including the rendered clear icon: all pass.NG8002for each missing binding.inputs,icon,value-accessors,validationspecs pass; fullstandalonesuite 115/115 with CI settings (workers=1). The pre-existingmodal-custom-injectorspec 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.