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

Fixed the iOS BackButton title does not update when set to an empty string or whitespace #25813

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

NanthiniMahalingam
Copy link
Contributor

@NanthiniMahalingam NanthiniMahalingam commented Nov 13, 2024

Root cause

  • String.Empty and not-null conditions are checked for the back button title text. Therefore, the text does not override the previous page title, as per default behavior, when setting the back button title to an empty string or whitespace.

Description of changes

  • Added a not-null condition for the back button title text, excluding empty strings.

Issues Fixed

Fixes #25742

Tested the behavior in the following platforms

  • Android
  • Windows
  • iOS
  • Mac

ScreenShot

iOS

Before changes

BackButton_Behavior.mp4

After changes

BackButtonIssueFixed.mp4

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Nov 13, 2024
Copy link
Contributor

Hey there @NanthiniMahalingam! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@dotnet dotnet deleted a comment from azure-pipelines bot Nov 14, 2024
@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-navigation NavigationPage community ✨ Community Contribution platform/iOS 🍎
Projects
None yet
Development

Successfully merging this pull request may close these issues.

iOS BackButton Title cannot be set to string.Empty or ""
2 participants