Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
RocketChat
Rocket.Chat.Fuselage
Commits
8cb685ff
Unverified
Commit
8cb685ff
authored
Mar 17, 2020
by
Taimur Azhar
Committed by
GitHub
Mar 16, 2020
Browse files
fix: filteredOptions for options (#169)
parent
ecd73894
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/fuselage/src/components/Select/Select.js
View file @
8cb685ff
...
...
@@ -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
,
o
ptions
,
internalChanged
);
const
[
cursor
,
handleKeyDown
,
handleKeyUp
,
reset
,
[
visible
,
hide
,
show
]]
=
useCursor
(
index
,
filteredO
ptions
,
internalChanged
);
const
ref
=
useRef
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment