Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
OS-jacobbell
requested changes
Sep 14, 2026
OS-jacobbell
left a comment
Contributor
There was a problem hiding this comment.
Everything looks good for the auto-generated component wrappers!
Some components are excluded from auto generation, e.g. standalone ion-checkbox. See core/stencil.config.ts for the full list of excluded components wrappers, and packages/angular/src for their manual implementations. The nullableBooleanAttribute will need to be applied to their inputs directly.
brandyscarney
removed their request for review
September 15, 2026 21:23
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 #30822
What is the current behavior?
Boolean props have to be bound explicitly. A bare attribute resolves to the empty string, so an editor reports
TS2322: Type 'string' is not assignable to type 'boolean'on markup like this:It compiles and works at runtime, because Stencil coerces boolean attributes on the element. The problem is what the Angular compiler accepts.
What is the new behavior?
Boolean props can now be set by attribute presence:
@stencil/angular-output-targetto 1.5.0 and enables its newbooleanAttributesoption on both Angular output targets. That declares an input transform on 144 boolean props across 57 components in the lazy output, and 45 components in the standalone output.ion-modalandion-popoveralone account for 19. Without this,<ion-checkbox checked>and<ion-modal handle>would still be rejected.nullandundefinedare passed through rather than coerced tofalse, so props that treat them as a third state keep working.ion-item detail,ion-modal handleandion-content forceOverscrollall resolveundefinedto a mode-specific default.core's build.Does this introduce a breaking change?
Other information
Dev build:
9.0.4-dev.11789496656.1690cf55The dependency bump is the fix rather than an unrelated update. The generated proxies are overwritten on every
corebuild, so this could not be solved in this repo. The change was made upstream in stenciljs/output-targets#842 and released in 1.5.0.The hand-written wrappers use one mixed input array, with the plain names derived for
ProxyCmp:A helper that built the list instead fails with
NG1010: Failed to resolve @Directive.inputs to an array, since Angular has to resolve the metadata statically.common/utils/boolean-attribute.tsduplicates the copied helper for the same reasonproxy.tsduplicatesProxyCmp; refer to the TODO at the top ofproxy.ts.Verified against
packages/angular/test/apps/ng18withstrictTemplatesenabled, consuming the built package:<ion-item button detail>compiles (generated wrapper).<ion-checkbox checked indeterminate disabled>,<ion-toggle checked enableOnOffLabels>,<ion-input clearInput counter required readonly>and<ion-modal isOpen handle keepContentsMounted showBackdrop>compile (hand-written wrappers).<ion-modal [handle]="42">fails withType '42' is not assignable to type 'string | boolean | null | undefined', which shows type checking genuinely engages rather than silently passing.