Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datepicker container does not place larger child below calendar picker #3654

Open
PMLP-novo opened this issue Jun 3, 2022 · 0 comments
Open

Comments

@PMLP-novo
Copy link

PMLP-novo commented Jun 3, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant