Ensure HighlightedText with merge_elements loads without a value (#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>
This commit is contained in:
Hannah 2023-09-19 17:36:05 +01:00 committed by GitHub
parent ff6f5250a7
commit 54d21d3f18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View File

@ -0,0 +1,6 @@
---
"@gradio/highlightedtext": patch
"gradio": patch
---
fix:Ensure `HighlightedText` with `merge_elements` loads without a value

View File

@ -33,7 +33,7 @@
export let loading_status: LoadingStatus;
$: if (combine_adjacent) {
$: if (value && combine_adjacent) {
value = merge_elements(value, "equal");
}
</script>

View File

@ -40,7 +40,7 @@
}
}
$: if (combine_adjacent) {
if (value && combine_adjacent) {
value = merge_elements(value, "equal");
}
</script>