Merge pull request #6819 from qburst/fix/6809

fix: correct empty label rendering to display non-breaking space
This commit is contained in:
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

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: {