Fix broken tests

This commit is contained in:
Tom Southall
2022-02-21 18:46:53 +00:00
parent a805a90222
commit 464459435d
2 changed files with 4 additions and 4 deletions

View File

@@ -128,9 +128,9 @@ export default function Container(props) {
return clearButton && !!state.query
}
const isExpanded = () => {
const isExpanded = (() => {
return hasFocus && state.itemsLoaded
}
})()
// Handle different keypresses and call the appropriate action creators
const checkKey = (evt) => {
@@ -240,7 +240,7 @@ export default function Container(props) {
aria-label={clearButtonAriaLabel}>{clearButtonText}</div>
)}
{isExpanded() && (
{isExpanded && (
<ListBox
id={listBoxId}
items={state.items}