From 6b598e081ae15be7da13bde4a504ab6026736b08 Mon Sep 17 00:00:00 2001 From: navedqb <109583873+navedqb@users.noreply.github.com> Date: Thu, 21 Nov 2024 11:22:17 +0530 Subject: [PATCH] correct empty label rendering in togglebutton --- packages/primevue/src/togglebutton/ToggleButton.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/primevue/src/togglebutton/ToggleButton.vue b/packages/primevue/src/togglebutton/ToggleButton.vue index 49c216b4ab..3b57607ef4 100755 --- a/packages/primevue/src/togglebutton/ToggleButton.vue +++ b/packages/primevue/src/togglebutton/ToggleButton.vue @@ -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: {