From 314b5fbc6337e7a3a94eb66cda9fc0104441e2e2 Mon Sep 17 00:00:00 2001 From: stanislavh Date: Fri, 13 Jan 2023 09:20:49 +0100 Subject: [PATCH] SONAR-18141 Status message is not automatically announced --- .../src/main/js/components/controls/SearchBox.tsx | 10 +++++----- .../__tests__/__snapshots__/SearchBox-test.tsx.snap | 4 ++++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/server/sonar-web/src/main/js/components/controls/SearchBox.tsx b/server/sonar-web/src/main/js/components/controls/SearchBox.tsx index 0de8c213ba1..3c5b8430a61 100644 --- a/server/sonar-web/src/main/js/components/controls/SearchBox.tsx +++ b/server/sonar-web/src/main/js/components/controls/SearchBox.tsx @@ -171,11 +171,11 @@ export default class SearchBox extends React.PureComponent { /> )} - {tooShort && minLength !== undefined && ( - - {translateWithParameters('select2.tooShort', minLength)} - - )} + + {tooShort && + minLength !== undefined && + translateWithParameters('select2.tooShort', minLength)} + ); } diff --git a/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/SearchBox-test.tsx.snap b/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/SearchBox-test.tsx.snap index caaaf8bce89..95e8fea7598 100644 --- a/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/SearchBox-test.tsx.snap +++ b/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/SearchBox-test.tsx.snap @@ -33,5 +33,9 @@ exports[`renders 1`] = ` } onClick={[Function]} /> + `; -- 2.39.5