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