fix: [Search:AppSearch:Engines page]Incorrect total number of options announced for Join our user research... combo box (#200567)

Closes: #200542

## Description
Visible total number of options should the same as announced for the
user as not to confuse them. Especially for the users using assistive
technologies.

## What was changed: 
1. `EuiSelect`.`hasNoInitialSelection` attribute should be set to true
only in case of no default value.
This commit is contained in:
Alexey Antonov 2024-11-21 16:12:42 +02:00 committed by GitHub
parent 90a9565ede
commit c145ba1bbc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -554,7 +554,7 @@ export const AppSearchGate: React.FC = () => {
)}
>
<EuiSelect
hasNoInitialSelection
hasNoInitialSelection={participateInUXLabs === null}
options={[
{
text: i18n.translate(

View file

@ -645,7 +645,8 @@ export const WorkplaceSearchGate: React.FC = () => {
)}
>
<EuiSelect
hasNoInitialSelection
data-test-subj="enterpriseSearchWorkplaceSearchGateSelect"
hasNoInitialSelection={participateInUXLabs === null}
options={[
{
text: i18n.translate(