Fix shared element state across component instances
This commit is contained in:
@@ -2309,10 +2309,10 @@ impl Render for TabsDemo {
|
||||
})
|
||||
.tabs(|_, _| {
|
||||
vec![
|
||||
Tab::new("Overview"),
|
||||
Tab::new("Details"),
|
||||
Tab::new("Settings"),
|
||||
Tab::new("Locked").disabled(true),
|
||||
Tab::new("overview", "Overview"),
|
||||
Tab::new("details", "Details"),
|
||||
Tab::new("settings", "Settings"),
|
||||
Tab::new("locked", "Locked").disabled(true),
|
||||
]
|
||||
}),
|
||||
))
|
||||
@@ -2356,7 +2356,7 @@ impl Render for TabsDemo {
|
||||
labels
|
||||
.iter()
|
||||
.map(|label| {
|
||||
Tab::new(label.clone())
|
||||
Tab::new(label.clone(), label.clone())
|
||||
.closeable(true)
|
||||
.busy(label == "Syncing")
|
||||
})
|
||||
@@ -3228,7 +3228,7 @@ impl Render for ScrollbarDemo {
|
||||
.h_full()
|
||||
.w_full(),
|
||||
)
|
||||
.child(Scrollbar::vertical(self.uniform.clone()).visibility(visibility)),
|
||||
.child(Scrollbar::vertical("uniform", self.uniform.clone()).visibility(visibility)),
|
||||
))
|
||||
.child(demo_section(
|
||||
"list",
|
||||
@@ -3254,7 +3254,7 @@ impl Render for ScrollbarDemo {
|
||||
.h_full()
|
||||
.w_full(),
|
||||
)
|
||||
.child(Scrollbar::vertical(self.list.clone()).visibility(visibility)),
|
||||
.child(Scrollbar::vertical("list", self.list.clone()).visibility(visibility)),
|
||||
))
|
||||
.child(
|
||||
div()
|
||||
|
||||
Reference in New Issue
Block a user