Skip to content

Commit

Permalink
Ensure HighlightedText with merge_elements loads without a value (#…
Browse files Browse the repository at this point in the history
…5602)

* add flag to merge_elements

* add changeset

* add changeset

* tweak

* tweak

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
  • Loading branch information
hannahblair and gradio-pr-bot committed Sep 19, 2023
1 parent ff6f525 commit 54d21d3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/chubby-hounds-itch.md
@@ -0,0 +1,6 @@
---
"@gradio/highlightedtext": patch
"gradio": patch
---

fix:Ensure `HighlightedText` with `merge_elements` loads without a value
Expand Up @@ -33,7 +33,7 @@
export let loading_status: LoadingStatus;
$: if (combine_adjacent) {
$: if (value && combine_adjacent) {
value = merge_elements(value, "equal");
}
</script>
Expand Down
2 changes: 1 addition & 1 deletion js/highlightedtext/static/StaticHighlightedtext.svelte
Expand Up @@ -40,7 +40,7 @@
}
}
$: if (combine_adjacent) {
if (value && combine_adjacent) {
value = merge_elements(value, "equal");
}
</script>
Expand Down

0 comments on commit 54d21d3

Please sign in to comment.