Merge pull request #6819 from qburst/fix/6809

fix: correct empty label rendering to display non-breaking space
pull/6798/merge
Tuğçe Küçükoğlu 2024-11-21 11:38:23 +03:00 committed by GitHub
commit 83ff1c0b8b
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: {