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

ToggleButton :   when label is empty #7432

Closed
navedqb opened this issue Nov 19, 2024 · 0 comments · Fixed by #7433
Closed

ToggleButton :   when label is empty #7432

navedqb opened this issue Nov 19, 2024 · 0 comments · Fixed by #7433
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@navedqb
Copy link
Contributor

navedqb commented Nov 19, 2024

Describe the bug

If you want to create a ToggleButton with an icon and no label (onLabel="" offLabel=""), the button will show the literal text  

Reproducer

https://stackblitz.com/edit/pd5f3h?file=src%2FApp.jsx

System Information

primereact: 10.8.4
react: 18.3.1

Steps to reproduce the behavior

No response

Expected behavior

When both onLabel and offLabel are empty, the button should render a non-breaking space instead of literal text, ensuring proper layout and spacing.

@navedqb navedqb added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Nov 19, 2024
@melloware melloware added Type: Bug Issue contains a defect related to a specific component. and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Nov 19, 2024
@melloware melloware added this to the 10.8.5 milestone Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants