Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Cant remove backButtonText #28962

Closed
3 tasks done
Hesesses opened this issue Feb 2, 2024 · 3 comments
Closed
3 tasks done

bug: Cant remove backButtonText #28962

Hesesses opened this issue Feb 2, 2024 · 3 comments
Labels
ionitron: needs reproduction a code reproduction is needed from the issue author

Comments

@Hesesses
Copy link

Hesesses commented Feb 2, 2024

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 ionitron-bot bot added the triage label Feb 2, 2024
@amandaejohnston amandaejohnston added the ionitron: needs reproduction a code reproduction is needed from the issue author label Feb 2, 2024
Copy link

ionitron-bot bot commented Feb 2, 2024

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.

@ionitron-bot ionitron-bot bot removed the triage label Feb 2, 2024
@amandaejohnston
Copy link
Contributor

Actually, I'm going to close this as a duplicate of #28751. Apologies for any confusion.

@amandaejohnston amandaejohnston closed this as not planned Won't fix, can't repro, duplicate, stale Feb 2, 2024
@amandaejohnston amandaejohnston removed their assignment Feb 2, 2024
Copy link

ionitron-bot bot commented Mar 3, 2024

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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ionitron: needs reproduction a code reproduction is needed from the issue author
Projects
None yet
Development

No branches or pull requests

2 participants