mirror of
https://github.com/yewprint/yewprint
synced 2025-02-16 12:08:25 +00:00
Disable onclick if the disable props is active (#123)
This commit is contained in:
parent
0d10d73d6b
commit
a5e7fadf4f
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ impl Component for MenuItem {
|
|||
)
|
||||
href={(!self.props.disabled).then(|| self.props.href.clone())}.flatten()
|
||||
tabIndex={(!self.props.disabled).then(|| "0")}
|
||||
onclick={self.props.onclick.clone()}
|
||||
onclick={(!self.props.disabled).then(|| self.props.onclick.clone())}
|
||||
>
|
||||
{
|
||||
if let Some(icon_name) = self.props.icon {
|
||||
|
|
Loading…
Add table
Reference in a new issue