summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--widget/src/combo_box.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/widget/src/combo_box.rs b/widget/src/combo_box.rs
index 253850df..0a4624cb 100644
--- a/widget/src/combo_box.rs
+++ b/widget/src/combo_box.rs
@@ -280,6 +280,15 @@ where
}
}
+impl<T> Default for State<T>
+where
+ T: Display + Clone,
+{
+ fn default() -> Self {
+ Self::new(Vec::new())
+ }
+}
+
impl<T> Filtered<T>
where
T: Clone,