From 62f94795d10d74eccc14b2fa16ae76a34eb8e4dc Mon Sep 17 00:00:00 2001 From: wzglinieckisoldevelo Date: Thu, 7 Dec 2023 14:19:30 +0100 Subject: [PATCH] OP-1663: Fetch openDirty value in fab button. --- src/components/generics/Form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/generics/Form.js b/src/components/generics/Form.js index 75254bc1..908e80bd 100644 --- a/src/components/generics/Form.js +++ b/src/components/generics/Form.js @@ -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: ( fabAction(this.props.edited)}>