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

TabModel.title will omit special characters like '&' because we run it through lodash's startCase #3804

Open
febbraiod opened this issue Oct 9, 2024 · 1 comment

Comments

@febbraiod
Copy link
Member

febbraiod commented Oct 9, 2024

This appears to happen by default when sourcing the title from the "id" provided in a config object through the TabContainerModel

@amcclain amcclain changed the title TabModel.title will omit special characters like '&' because we run it thought lodash's startCase TabModel.title will omit special characters like '&' because we run it through lodash's startCase Oct 22, 2024
@amcclain
Copy link
Member

Sounds like we would benefit from an updated version of genDisplayName()

export function genDisplayName(fieldName: string): string {

Could relocate out of this file and avoid the use of startCase there as well.

Although it looks to me like this only applies if you are not spec'ing a title and instead having the tab id be auto-processed into a display title. Do you have chars like & in your tab IDs also? That seems a bit weird to me, and potentially a source of bugs if you had routing enabled. Pls review and confirm when you have a chance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants