React-toolbox date picker calendar dialog is moving DOM to the top

130 Views Asked by At

I have problem with react-toolbox's date picker and want to ask maybe someone had same problem. So, when I click on date picker input calendar dialog opens and moves background to top of the page. I want that modal would open on same position, where I am clicking.

I am using very simple date picker:

import * as React from 'react';
import DatePickerBase, { DatePickerProps } from 'react-toolbox/lib/date_picker/DatePicker';

export type DatePickerProps = {} & DatePickerBase;

export const DatePicker: React.SFC<DatePickerProps> = ({ ...props }) => {
  return <DatePickerBase {...props} />;
};

Maybe some had same problem with other react-toolbox dialogs? I would appreciate for any help.

0

There are 0 best solutions below