Fix disabled props on button (#122)

This commit is contained in:
Yohan Boogaert 2021-08-14 15:17:03 +02:00 committed by GitHub
parent 649be4432d
commit d656574d41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,7 +78,7 @@ impl Component for Button {
self.props.class.clone(),
)
style=self.props.style.clone()
onclick={self.props.onclick.clone()}
onclick=(!self.props.disabled).then(|| self.props.onclick.clone())
>
{
self