-
Notifications
You must be signed in to change notification settings - Fork 13.4k
bug: ion-checkbox doesn't show label from variable after navigating in Angular #31052
Copy link
Copy link
Open
Labels
type: buga confirmed bug reporta confirmed bug report
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
In Ionic 8.8.2 bug #30632 was fixed, but that introduced a new bug:
When an ion-checkbox gets its label from an Angular variable, and you navigate from another page to the page with the checkbox, the label doesn't show.
Expected Behavior
The checkbox label always shows the contents of the Angular variable.
Steps to Reproduce
- Go to https://stackblitz.com/~/github.com/SandraCaci/test-case-ion-checkbox
- Wait until the app is started and you see "Demo of demo-test-input-checkbox"
- Observe that all checkboxes have a label (Ionic 8.8.2 is applied, the bugfix fix(checkbox): re-evaluate label visibility when label is updated #30980 ensured that also the 2nd checkbox shows a label).
- Click the home icon in the upper left navbar to go to the home page, and then click the checkbox icon in the navbar just below the home icon to go back to the checkbox page
- Observe that now all checkbox labels have disappeared.
Code Reproduction URL
https://stackblitz.com/~/github.com/SandraCaci/test-case-ion-checkbox
Ionic Info
StackBlitz:
Ionic:
Ionic CLI : 5.4.16
Utility:
cordova-res : not installed
native-run : not installed
System:
NodeJS : v22.22.0
npm : 10.8.2
OS : Linux 5.0
Local (same behavior):
Ionic:
Ionic CLI : 5.4.16
Utility:
cordova-res : not installed
native-run : not installed
System:
NodeJS : v24.14.0
npm : 11.9.0
OS : Windows 10
Additional Information
Related to the fix of bug #30980
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type: buga confirmed bug reporta confirmed bug report