Skip to content

Commit

Permalink
Merge pull request #184 from openimis/develop
Browse files Browse the repository at this point in the history
MERGING develop into release/23.10
  • Loading branch information
delcroip authored Dec 15, 2023
2 parents 9bd9849 + a203ba2 commit 06e5bf4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/generics/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,13 @@ class Form extends Component {
return (
<Grid item key={`form-action-${idx}`} className={classes.paperHeaderAction}>
{withTooltip(
!!a.button ? a.button : <IconButton onClick={a.doIt}>{a.icon}</IconButton>,
!!a.button ? (
a.button
) : (
<IconButton onClick={a.doIt} disabled={a?.disabled}>
{a.icon}
</IconButton>
),
a.tooltip,
)}
</Grid>
Expand Down

0 comments on commit 06e5bf4

Please sign in to comment.