Fix title

This commit is contained in:
space-nuko
2023-05-28 00:12:09 -05:00
parent 60d0fb3128
commit 45f7a8d2c1

View File

@@ -129,6 +129,10 @@
};
}
let title: ""
$: nodeValue && $nodeValue && (title = getTitle($nodeValue))
function getTitle(value?: string) {
if (value == null) {
if (!nodeValue)
@@ -143,7 +147,7 @@
</script>
<div class="wrapper comfy-combo" class:mobile={isMobile} class:updated={$lightUp}>
<label title={getTitle()}>
<label title={title}>
{#if widget.attrs.title !== ""}
<BlockTitle show_label={true}>
{widget.attrs.title}