From 3f116b2c6acb8977eac6aff22f84db6039fb42ef Mon Sep 17 00:00:00 2001 From: sabrina-bongiovanni <116291154+sabrina-bongiovanni@users.noreply.github.com> Date: Wed, 14 Aug 2024 06:58:12 +0200 Subject: [PATCH] fix: disable save button upon submitting (#6250) --- news/6250.bugfix | 1 + src/components/manage/Add/Add.jsx | 1 + 2 files changed, 2 insertions(+) create mode 100644 news/6250.bugfix diff --git a/news/6250.bugfix b/news/6250.bugfix new file mode 100644 index 0000000000..ac84782906 --- /dev/null +++ b/news/6250.bugfix @@ -0,0 +1 @@ +Disable save button when loading POST query @sabrina-bongiovanni diff --git a/src/components/manage/Add/Add.jsx b/src/components/manage/Add/Add.jsx index e971749e5e..f5b7652da1 100644 --- a/src/components/manage/Add/Add.jsx +++ b/src/components/manage/Add/Add.jsx @@ -408,6 +408,7 @@ class Add extends Component { aria-label={this.props.intl.formatMessage(messages.save)} onClick={() => this.form.current.onSubmit()} loading={this.props.createRequest.loading} + disabled={this.props.createRequest.loading} >