Skip to content

Commit 41cff42

Browse files
committed
ui: fix react-select menu position
* closes #1954 Signed-off-by: papadopan <antonios.papadopan@gmail.com>
1 parent c6ddf0b commit 41cff42

File tree

1 file changed

+2
-0
lines changed
  • ui/cap-react/src/components/drafts/form/themes/grommet/widgets

1 file changed

+2
-0
lines changed

ui/cap-react/src/components/drafts/form/themes/grommet/widgets/TextWidget.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,8 @@ class TextWidget extends Component {
261261
defaultOptions={false}
262262
value={{ label: this.props.value, value: this.props.value }}
263263
loadOptions={debounce(this.updateSuggestions, 500)}
264+
styles={{ menuPortal: base => ({ ...base, zIndex: 9999 }) }}
265+
menuPortalTarget={document.body.getElementsByClassName("rjsf")[0]}
264266
/>
265267
</Box>
266268
);

0 commit comments

Comments
 (0)