From: Revanshu Paliwal Date: Thu, 27 Oct 2022 15:19:19 +0000 (+0200) Subject: SONAR-17533: FIxing random input toggle issue in settings page X-Git-Tag: 9.8.0.63668~175 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0c8298d8c2501b22f835137794a34f794406b225;p=sonarqube.git SONAR-17533: FIxing random input toggle issue in settings page --- diff --git a/server/sonar-web/src/main/js/apps/settings/components/inputs/InputForSecured.tsx b/server/sonar-web/src/main/js/apps/settings/components/inputs/InputForSecured.tsx index 23bdb1d0edd..4233c6d7dae 100644 --- a/server/sonar-web/src/main/js/apps/settings/components/inputs/InputForSecured.tsx +++ b/server/sonar-web/src/main/js/apps/settings/components/inputs/InputForSecured.tsx @@ -50,7 +50,7 @@ export default class InputForSecured extends React.PureComponent { * - the value changes from outside the input (i.e. store update/reset/cancel) */ if ( - (prevProps.hasValueChanged || this.props.setting !== prevProps.setting) && + (prevProps.hasValueChanged || this.props.setting.value !== prevProps.setting.value) && !this.props.hasValueChanged ) { this.setState({ changing: !this.props.setting.hasValue });