mirror of
https://github.com/yewprint/yewprint
synced 2024-11-25 04:50:20 +00:00
Fix: tabs's id is not optional
This commit is contained in:
parent
a1744ce86c
commit
3a3315e499
2 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue