Skip to content

Commit

Permalink
Merge pull request #6819 from qburst/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
tugcekucukoglu authored Nov 21, 2024
2 parents 8dae710 + cd57727 commit 83ff1c0
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 83ff1c0

Please sign in to comment.