fix(checkbox): do not set title attribute if already provided (#1323)

* fix(checkbox): do not set title attribute if already provided

* Run "yarn build:docs"
This commit is contained in:
metonym 2022-05-29 10:42:36 -07:00 committed by GitHub
commit c90594002a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -66,7 +66,7 @@
let refLabel = null;
$: isTruncated = refLabel?.offsetWidth < refLabel?.scrollWidth;
$: title = isTruncated ? refLabel?.innerText : title;
$: title = !title && isTruncated ? refLabel?.innerText : title;
</script>
<!-- svelte-ignore a11y-mouse-events-have-key-events -->