mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
fix(checkbox): do not set title attribute if already provided
This commit is contained in:
parent
f431104057
commit
2daf9004e7
1 changed files with 1 additions and 1 deletions
|
@ -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 -->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue