correct empty label rendering in togglebutton

pull/6819/head^2
navedqb 2024-11-21 11:22:17 +05:30 committed by GitHub
parent 3c426a1386
commit 6b598e081a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ export default {
return isNotEmpty(this.onLabel) && isNotEmpty(this.offLabel); return isNotEmpty(this.onLabel) && isNotEmpty(this.offLabel);
}, },
label() { label() {
return this.hasLabel ? (this.d_value ? this.onLabel : this.offLabel) : ' '; return this.hasLabel ? (this.d_value ? this.onLabel : this.offLabel) : '\u00A0';
} }
}, },
directives: { directives: {