bug: ion-icon [src] binding for string value regression after stencil upgrade
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 45/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- angular, typescript
- Domaine
- frontend
Piste de recherche
Commencez par la reproduction StackBlitz liée, en particulier src/app/app.component.ts et src/app/foo-ion-content/foo-ion-content.component.html autour des lignes 9 à 11. Comparez le comportement entre Ionic 8.7.0, 8.7.1 et 8.7.2 pour les cas de popover inline, ion-content et sans contenu ; le travail est terminé lorsque l’URL SVG liée s’affiche dans tous les cas documentés.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v8.x
Current Behavior
ion-icon using the [src] binding with string value inside a popover without ion-content stopped rendering.
Notes:
I know [src]="'value'" is redundant compared to src="value", but it worked fine before the update.
This seems to be a regression since the same Angular + Ionic code works perfectly in 8.7.0 but breaks in 8.7.1.
While ion-content is recommended, I don’t think it’s strictly required, and this issue might reveal another underlying bug.
Example of broken code:
<ion-icon
[src]="'https://ionicframework.com/docs/logos/ionic-text-docs-dark.svg'">
</ion-icon>
Example that works:
<ion-icon
src="https://ionicframework.com/docs/logos/ionic-text-docs-dark.svg"
size="large">
</ion-icon>
Expected Behavior
ion-icon src should be rendered as before, regarding if string value (url) will be provided using [src]="''" or src=""
Steps to Reproduce
- Create a component containing an ion-icon with a custom [src] binding pointing to valid svg url
- ✅ Display the component inline → works.
- ✅ Display the component inside a popover with ion-content → works.
- ❌ Display the component inside a popover without ion-content → icon does not render.
Reproduction repo:
StackBlitz reproduction
Code Reproduction URL
Ionic Info
Ionic:
Ionic CLI : 7.2.1
Ionic Framework : @ionic/angular 8.7.2
@angular-devkit/build-angular : 19.2.15
@angular-devkit/schematics : 19.2.15
@angular/cli : 19.2.15
@ionic/angular-toolkit : 12.3.0
Utility:
cordova-res : 0.15.4
native-run : 2.0.1
System:
NodeJS : v20.15.1 (/Users/andrzejpindor/.local/share/nvm/v20.15.1/bin/node)
npm : 10.7.0
OS : macOS Unknown
Additional Information
No response
- Langage dominant
- TypeScript
- Étoiles
- 52.8k
- Forks
- 13.3k
- Merge moyen
- 3 j 1 h
- PR mergées (30 j)
- 78
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de ionic-team/ionic-framework
-
bug: input-otp, backspace in an empty box only moves focus instead of clearing the previous boxPeut-être pris @sarankumar1325 l’a pris il y a 23 jours. Ouvertepackage: core type: bug
Difficulté 2/5 1-3 heures Accessibilité débutants 90/100
ionic-team/ionic-framework#31639 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
bug: vue swipe cancellation throws when the previous page is missingPeut-être pris @dandoingdev l’a pris il y a 47 jours. Ouvertepackage: vue type: bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
ionic-team/ionic-framework#31514 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
bug: ion-searchbar input is always labelled "search text"; aria-label on the host is not forwardedPeut-être pris @HappyKnuckles l’a pris il y a 41 jours. Ouvertea11y package: core type: bug
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
ionic-team/ionic-framework#31492 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
bug: IonTabs throws when a Fragment contains one IonRouterOutletPeut-être pris @Benziza l’a pris il y a 82 jours. Ouvertepackage: react type: bug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
ionic-team/ionic-framework#31410 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
bug: angular swipe-back gesture crashes in StackController.startBackTransition when the stack is popped before the gesture is capturedPeut-être pris @officialasishkumar l’a pris il y a 10 jours. Ouvertepackage: angular type: bug
Difficulté 2/5 1-3 heures Accessibilité débutants 86/100
ionic-team/ionic-framework#31291 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de ionic-team/ionic-framework
Issues similaires
-
bot:ai-assisted component:platform-js status:untriaged
Difficulté 1/5 Moins d'une heure Accessibilité débutants 74/100
midnightntwrk/platform-js#38 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
ranxianglei/billion-context#7068 ·
Les mainteneurs répondent en général sous 1 jour
-
vendor: bump whisper.cpp past 6a8addd — the current pin aborts the app on a failed Metal initOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
mybigday/whisper.rn#348 ·
-
enhancement severity:low
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Battle-Cattle/BCUK-Bot-4#1075 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 67/100
ilan-pinto/roaring-lions#1552 ·
Les mainteneurs répondent en général sous 1 jour