Skip to content

Commit

Permalink
Merge pull request #181 from openimis/feature/OP-1663
Browse files Browse the repository at this point in the history
OP-1663: Fetch openDirty value in fab button.
  • Loading branch information
delcroip authored Dec 7, 2023
2 parents f8ff6f9 + 62f9479 commit 9bd9849
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/generics/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class Form extends Component {
tooltip: saveTooltip || formatMessage(this.props.intl, module, "saveTooltip"),
},
{
condition: !this.state.dirty && !!fab,
condition: (!!this.state.dirty || !!openDirty) && !!fab,
content: (
<span>
<Fab color="primary" onClick={(e) => fabAction(this.props.edited)}>
Expand Down

0 comments on commit 9bd9849

Please sign in to comment.