Skip to content

Lighthouse ARIA accessibility warning #778

@joostmeijles

Description

@joostmeijles

I am getting a ARIA accessibility warning in Lighthouse on the following:

<div id="react-autowhatever-1" role="listbox" class="react-autosuggest__suggestions-container"></div>

My React components looks like this:

const inputProps = {
        placeholder: 'What are you looking for?',
        onChange: onChange,
        onKeyDown: onKeyDown,
        value
    }

<AutoSuggest
            suggestions={hits}
            onSuggestionsFetchRequested={onSuggestionsFetchRequested}
            onSuggestionsClearRequested={onSuggestionsClearRequested}
            getSuggestionValue={getSuggestionValue}
            renderSuggestion={renderSuggestion}
            inputProps={inputProps}
            onSuggestionSelected={suggestionSelected}
            shouldRenderSuggestions={shouldRenderSuggestions}
            focusInputOnSuggestionClick={false}
            onSuggestionHighlighted={onSuggestionHighlighted}
            multiSection={true}
            renderSectionTitle={renderSectionTitle}
            getSectionSuggestions={getSectionSuggestions}
        />

Am I missing something obvious or is this a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions