Skip to content

Commit 1839abf

Browse files
committed
Bring back genomic pages
1 parent 5b601fa commit 1839abf

File tree

5 files changed

+262
-217
lines changed

5 files changed

+262
-217
lines changed

src/main/webapp/app/pages/annotationPage/AnnotationBreadcrumbs.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,20 +151,27 @@ const DropdownBreadcrumb: React.FunctionComponent<IDropdownBreadcrumb> = props =
151151
<Then>
152152
<Select
153153
menuIsOpen
154+
closeMenuOnBlur
154155
theme={theme => ({
155156
...theme,
156157
colors: {
157158
...theme.colors,
158159
primary: COLOR_BLUE,
159160
},
160161
})}
162+
menuPortalTarget={document.body}
163+
menuPosition="fixed"
161164
styles={{
162165
control: baseStyles => ({
163166
...baseStyles,
164167
fontSize: 12,
165168
width: 110,
166169
minHeight: 10,
167170
}),
171+
menuPortal: baseStyles => ({
172+
...baseStyles,
173+
zIndex: 9999,
174+
}),
168175
option: baseStyles => ({
169176
...baseStyles,
170177
fontSize: 12,
@@ -195,6 +202,7 @@ const DropdownBreadcrumb: React.FunctionComponent<IDropdownBreadcrumb> = props =
195202
props.onChange(selectedOption);
196203
setEditing(false);
197204
}}
205+
onBlur={() => setEditing(false)}
198206
defaultValue={{
199207
label: props.text,
200208
value: props.text,

0 commit comments

Comments
 (0)