Skip to content

Commit 3c9c510

Browse files
committed
Fix UX bugs via internal prop override 😬
1 parent 2476f38 commit 3c9c510

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎src-docs/src/views/selectable/selectable_sizing.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,12 @@ const SelectableInputPopover = () => {
234234
onFocus: () => setIsOpen(true),
235235
onBlur: () => setIsOpen(false),
236236
}}
237-
isPreFiltered={!isSearching} // Shows the full list when not actively typing to search
238237
listProps={{
239238
css: { '.euiSelectableList__list': { maxBlockSize: 200 } },
239+
// @ts-ignore - Override search highlighting when a selection is chosen
240+
searchValue: isSearching ? inputValue : '',
240241
}}
242+
isPreFiltered={!isSearching} // Shows the full list when not actively typing to search
241243
>
242244
{(list, search) => (
243245
<EuiInputPopover

0 commit comments

Comments
 (0)