mirror of
https://github.com/yewprint/yewprint
synced 2024-11-25 13:00:19 +00:00
Fix disabled props on button (#122)
This commit is contained in:
parent
649be4432d
commit
d656574d41
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue