Skip to content
GitLab
Menu
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
cf9da5f6
Unverified
Commit
cf9da5f6
authored
Feb 07, 2020
by
Guilherme Gazzo
Browse files
fix overflow
parent
c928ed74
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/fuselage-ui-kit/src/Overflow.js
View file @
cf9da5f6
...
...
@@ -12,7 +12,7 @@ import { useBlockContext } from './hooks';
const
convertOptions
=
(
options
,
parser
)
=>
options
.
map
(({
text
,
value
})
=>
[
value
,
parser
(
text
)]);
export
const
Overflow
=
({
context
,
options
,
parser
,
element
})
=>
{
export
const
Overflow
=
({
context
,
options
,
parser
,
...
element
})
=>
{
const
[{
loading
},
action
]
=
useBlockContext
(
element
,
context
);
const
handleSelection
=
([
value
])
=>
action
({
target
:
{
value
}
});
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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