react-datepicker icon indicating copy to clipboard operation
react-datepicker copied to clipboard

Datepicker container does not place larger child below calendar picker

Open PMLP-novo opened this issue 2 years ago • 1 comments

Describe the bug Datepicker container does not place larger child below calendar picker

To Reproduce

() => {
  const [startDate, setStartDate] = useState(new Date());
  return (
    <DatePicker selected={startDate} onChange={(date) => setStartDate(date)}>
      <div style={{ color: "red" }}>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris sed imperdiet dui. Aliquam quis turpis id mi tincidunt interdum. Ut aliquam condimentum neque vel euismod.</div>
    </DatePicker>
  );
};

Expected behavior The child should be place below and the container should grow in height to fit the child in

Screenshots image

Desktop (please complete the following information): https://reactdatepicker.com/#example-children

PMLP-novo avatar Jun 03 '22 08:06 PMLP-novo