Skip to content

Commit dddc3cc

Browse files
Sorted CSS Style in Dynamics
1 parent 645c52f commit dddc3cc

1 file changed

Lines changed: 7 additions & 13 deletions

File tree

controls/pcfcontroldemo/InspectorPickerControl/InspectorReact.tsx

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { release } from "os";
2+
import { relative } from "path";
13
import * as React from "react";
24
import AsyncSelect from 'react-select/async';
35

@@ -46,27 +48,19 @@ export class MultiSelectControl extends React.Component<IProps, IState> {
4648
}
4749

4850
public render(): JSX.Element
49-
{
50-
51-
const styles = {
52-
menu: (base: any) => ({
53-
...base,
54-
flex: 1,
55-
flexDirection: 'row',
56-
position: 'static'
57-
})
58-
};
59-
51+
{
52+
const selectStyles = { menuPortal: (zzz: any) => ({ ...zzz, zIndex: 9999}) };
53+
6054
return (
6155
<div>
6256
<AsyncSelect
6357
isMulti={true}
64-
styles={styles}
58+
menuPortalTarget={document.body}
59+
styles={selectStyles}
6560
getOptionLabel={e => e.name}
6661
getOptionValue={e => e.bookableresourceid}
6762
loadOptions={this.loadOptions}
6863
defaultOptions
69-
minMenuHeight={300}
7064
onChange={this.onChange}
7165
/></div>
7266
);

0 commit comments

Comments
 (0)