Skip to content

Commit

Permalink
fix: allow text component to reset
Browse files Browse the repository at this point in the history
  • Loading branch information
chhoumann committed Jul 19, 2022
1 parent db56f27 commit 69a619e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/obsidian/Text.svelte
Expand Up @@ -28,7 +28,7 @@
});
function updateTextComponentAttributes(component: TextComponent) {
if (value) component.setValue(value);
if (value !== undefined) component.setValue(value);
if (disabled) component.setDisabled(disabled);
if (placeholder) component.setPlaceholder(placeholder);
if (type) component.inputEl.type = type;
Expand All @@ -43,4 +43,4 @@
}
</script>

<span bind:this={textRef} />
<span bind:this={textRef} />

0 comments on commit 69a619e

Please sign in to comment.