Merge pull request #47 from navedqb/fix/6809

fix: correct empty label rendering to display non-breaking space
pull/6819/head
navedqb 2024-11-21 11:22:53 +05:30 committed by GitHub
commit cd577275c4
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);
},
label() {
return this.hasLabel ? (this.d_value ? this.onLabel : this.offLabel) : ' ';
return this.hasLabel ? (this.d_value ? this.onLabel : this.offLabel) : '\u00A0';
}
},
directives: {