Unverified Commit 8cb685ff authored by Taimur Azhar's avatar Taimur Azhar Committed by GitHub
Browse files

fix: filteredOptions for options (#169)

parent ecd73894
......@@ -49,7 +49,7 @@ export const Select = ({
const applyFilter = ([, option]) => !filter || ~option.toLowerCase().indexOf(filter.toLowerCase());
const filteredOptions = options.filter(applyFilter).map(mapOptions);
const [cursor, handleKeyDown, handleKeyUp, reset, [visible, hide, show]] = useCursor(index, options, internalChanged);
const [cursor, handleKeyDown, handleKeyUp, reset, [visible, hide, show]] = useCursor(index, filteredOptions, internalChanged);
const ref = useRef();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment