Collapse: fix class wrongly applied to body (#149)

This commit is contained in:
Cecile Tonglet 2022-09-19 16:17:09 +02:00 committed by GitHub
parent 25950d7e7d
commit 34ae2cb198
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -183,12 +183,12 @@ impl Component for Collapse {
}
html! {
<div class={classes!("bp3-collapse")} style={container_style}>
<div
class={classes!(
"bp3-collapse-body",
ctx.props().class.clone(),
)}
class={classes!("bp3-collapse", ctx.props().class.clone())}
style={container_style}
>
<div
class={classes!("bp3-collapse-body")}
style={content_style}
aria-hidden={(!self.render_children).then(|| "true")}
ref={self.contents_ref.clone()}