Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-web
ensembl-client
Commits
56237865
Unverified
Commit
56237865
authored
Apr 30, 2021
by
Andrey Azov
Committed by
GitHub
Apr 30, 2021
Browse files
Fix the unexpected expansion of species links on the home page (#495)
parent
a8ac5046
Pipeline
#152099
passed with stages
in 4 minutes and 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/ensembl/src/content/home/components/homepage-app-links/HomepageAppLinks.tsx
...t/home/components/homepage-app-links/HomepageAppLinks.tsx
+2
-2
No files found.
src/ensembl/src/content/home/components/homepage-app-links/HomepageAppLinks.tsx
View file @
56237865
...
...
@@ -56,7 +56,7 @@ type HomepageAppLinksRowProps = {
const
HomepageAppLinks
=
(
props
:
Props
)
=>
{
const
[
expandedRowIndex
,
setExpandedRowIndex
]
=
useState
<
number
|
null
>
(
null
);
const
onToggleRow
=
(
index
:
number
)
=>
{
const
onToggleRow
=
(
index
:
number
|
null
)
=>
{
if
(
index
===
expandedRowIndex
)
{
setExpandedRowIndex
(
null
);
}
else
{
...
...
@@ -86,7 +86,7 @@ const HomepageAppLinksRow = (props: HomepageAppLinksRowProps) => {
const
dispatch
=
useDispatch
();
const
onOutsideClick
=
()
=>
{
toggleExpand
();
isExpanded
&&
toggleExpand
();
};
useOutsideClick
(
elementRef
,
onOutsideClick
);
...
...
Write
Preview
Markdown
is supported
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