mirror of
https://github.com/yewprint/yewprint
synced 2024-11-21 19:13:05 +00:00
Collapse: fix class wrongly applied to body (#149)
This commit is contained in:
parent
25950d7e7d
commit
34ae2cb198
1 changed files with 5 additions and 5 deletions
|
@ -183,12 +183,12 @@ impl Component for Collapse {
|
|||
}
|
||||
|
||||
html! {
|
||||
<div class={classes!("bp3-collapse")} style={container_style}>
|
||||
<div
|
||||
class={classes!("bp3-collapse", ctx.props().class.clone())}
|
||||
style={container_style}
|
||||
>
|
||||
<div
|
||||
class={classes!(
|
||||
"bp3-collapse-body",
|
||||
ctx.props().class.clone(),
|
||||
)}
|
||||
class={classes!("bp3-collapse-body")}
|
||||
style={content_style}
|
||||
aria-hidden={(!self.render_children).then(|| "true")}
|
||||
ref={self.contents_ref.clone()}
|
||||
|
|
Loading…
Reference in a new issue