mirror of
https://github.com/gradio-app/gradio.git
synced 2025-04-12 12:40:29 +08:00
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:
parent
3e93740f05
commit
3a053cc76c
6
.changeset/new-chefs-build.md
Normal file
6
.changeset/new-chefs-build.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
"@gradio/atoms": patch
|
||||
"gradio": patch
|
||||
---
|
||||
|
||||
fix:Fix chatbot `visible` prop not reacting to changes
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user