mirror of
https://github.com/gradio-app/gradio.git
synced 2025-02-23 11:39:17 +08:00
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:
parent
ff6f5250a7
commit
54d21d3f18
6
.changeset/chubby-hounds-itch.md
Normal file
6
.changeset/chubby-hounds-itch.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
"@gradio/highlightedtext": patch
|
||||
"gradio": patch
|
||||
---
|
||||
|
||||
fix:Ensure `HighlightedText` with `merge_elements` loads without a value
|
@ -33,7 +33,7 @@
|
||||
|
||||
export let loading_status: LoadingStatus;
|
||||
|
||||
$: if (combine_adjacent) {
|
||||
$: if (value && combine_adjacent) {
|
||||
value = merge_elements(value, "equal");
|
||||
}
|
||||
</script>
|
||||
|
@ -40,7 +40,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
$: if (combine_adjacent) {
|
||||
if (value && combine_adjacent) {
|
||||
value = merge_elements(value, "equal");
|
||||
}
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user