ionic-team / ionic-framework

A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.
https://ionicframework.com
MIT License
51.02k stars 13.51k forks source link

bug: Cant remove backButtonText #28962

Closed Hesesses closed 8 months ago

Hesesses commented 8 months ago

Prerequisites

Ionic Framework Version

v7.x

Current Behavior

I'm using the latest Ionic 7.7.0 with Angular standalone components

both provideIonicAngular({ backButtonText: ''}), and <ion-back-button defaultHref="/tabs/home" text="" ></ion-back-button>

Gives an console error Cannot read properties of null (reading 'getBoundingClientRect')

Expected Behavior

Display backbutton without any texts and no errors and goes back to last page

Steps to Reproduce

Edit main.ts:

bootstrapApplication(AppComponent, {
  providers: [
    { provide: RouteReuseStrategy, useClass: IonicRouteStrategy },
    provideIonicAngular({ backButtonText: ''}),
    provideRouter(routes),
  ],
});

create pages and navigation to go forward and back

Code Reproduction URL

No response

Ionic Info

Ionic CLI                     : 7.1.1 (/opt/homebrew/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 7.7.0
   @angular-devkit/build-angular : 17.1.2
   @angular-devkit/schematics    : 17.1.2
   @angular/cli                  : 17.1.2
   @ionic/angular-toolkit        : 9.0.0

Additional Information

No response

ionitron-bot[bot] commented 8 months ago

Thanks for the issue! This issue has been labeled as needs reproduction. This label is added to issues that need a code reproduction.

Please reproduce this issue in an Ionic starter application and provide a way for us to access it (GitHub repo, StackBlitz, etc). Without a reliable code reproduction, it is unlikely we will be able to resolve the issue, leading to it being closed.

If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was not enough for our team to reproduce the issue.

For a guide on how to create a good reproduction, see our Contributing Guide.

averyjohnston commented 8 months ago

Actually, I'm going to close this as a duplicate of https://github.com/ionic-team/ionic-framework/issues/28751. Apologies for any confusion.

ionitron-bot[bot] commented 7 months ago

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.