Skip to content

Commit

Permalink
Merge pull request #47 from navedqb/fix/6809
Browse files Browse the repository at this point in the history
fix: correct empty label rendering to display non-breaking space
  • Loading branch information
navedqb authored Nov 21, 2024
2 parents 3c426a1 + 6b598e0 commit cd57727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/primevue/src/togglebutton/ToggleButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default {
return isNotEmpty(this.onLabel) && isNotEmpty(this.offLabel);
},
label() {
return this.hasLabel ? (this.d_value ? this.onLabel : this.offLabel) : ' ';
return this.hasLabel ? (this.d_value ? this.onLabel : this.offLabel) : '\u00A0';
}
},
directives: {
Expand Down

0 comments on commit cd57727

Please sign in to comment.