Skip to content

Commit

Permalink
fix(location-field): hide listbox when menu hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-heppner-ibigroup committed Jun 15, 2024
1 parent 491de28 commit 6aff951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/location-field/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,7 @@ const LocationField = ({
</S.HiddenContent>
<ItemList
// Hide the list from screen readers if no enabled options are shown.
aria-hidden={hasNoEnabledOptions}
aria-hidden={hasNoEnabledOptions || !menuVisible}
aria-label={intl.formatMessage({
defaultMessage: "Suggested locations",
description:
Expand Down

0 comments on commit 6aff951

Please sign in to comment.