Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
type: 'inner',
direction: 'horizontal',
overflowMargin: -5,
allowedShowByCenter: false,
slidePriority: [
'slideOnAdjacentEdge',
'changeType',
'slideOnOppositeEdge',
'slideOnCurrentEdge',
],
allowedSlideOnCurrentEdge: true,
allowedSlideOnOppositeEdge: true,
allowedSlideOnAdjacentEdge: false,
allowedChangeType: false,
onOverflow: noop,
...Portal.defaultProps,
};
let autoPositionInstances = [];
export default class AutoPosition extends Component {
constructor(props) {
super(props);
this._domNode = null;
this.state = {
visible: props.visible,
currentPosition: {
top: null,
left: null,
},