Fix chatbot visible prop not reacting to changes (#10161)

* Fix bug

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
Freddy Boulton 2024-12-09 15:13:56 -08:00 committed by GitHub
parent 3e93740f05
commit 3a053cc76c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 2 deletions

View File

@ -0,0 +1,6 @@
---
"@gradio/atoms": patch
"gradio": patch
---
fix:Fix chatbot `visible` prop not reacting to changes

View File

@ -19,8 +19,6 @@
export let min_width = 0;
export let flex = false;
if (!visible) flex = false;
let tag = type === "fieldset" ? "fieldset" : "div";
const get_dimension = (
@ -35,6 +33,10 @@
return dimension_value;
}
};
$: if (!visible) {
flex = false;
}
</script>
<svelte:element