Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/OptionList/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ const RawOptionList = React.forwardRef<RefOptionListProps, RawOptionListProps>((
);
});

const messages = activeValueCells.join(" / ")

Check notice

Code scanning / CodeQL

Semicolon insertion

Avoid automated semicolon insertion (96% of all statements in [the enclosing function](1) have an explicit semicolon).

// >>>>> Render
return (
<CacheContent open={open}>
Expand All @@ -234,6 +236,22 @@ const RawOptionList = React.forwardRef<RefOptionListProps, RawOptionListProps>((
>
{columnNodes}
</div>
<div
aria-live="polite"
style={{
zIndex: 9999,
border: 0,
clip: 'rect(1px, 1px, 1px, 1px)',
height: 1,
width: 1,
position: 'absolute',
overflow: 'hidden',
padding: 0,
whiteSpace: 'nowrap',
}}
>
{messages}
</div>
</CacheContent>
);
});
Expand Down