Fix: tabs's id is not optional

This commit is contained in:
Cecile Tonglet 2020-10-25 09:36:18 +01:00
parent a1744ce86c
commit 3a3315e499
2 changed files with 1 additions and 1 deletions

View file

@ -47,6 +47,7 @@ impl Component for Example {
html! {
<div>
<Tabs<Civilization>
id="civilizations"
animate=self.props.animate
vertical=self.props.vertical
selected_tab_id=self.selected

View file

@ -16,7 +16,6 @@ pub struct TabsProps<T: Clone + PartialEq> {
pub animate: bool,
#[prop_or_default]
pub default_selected_tab_id: Option<T>,
#[prop_or_default]
pub id: String,
#[prop_or_default]
pub large: ConditionalClass,