Hi,
I am using prime react calendar control. I have mutiple divs in my page. Calendar control date picker is hidden behind the div.
import { Calendar } from "primereact/calendar";
<Calendar
className="m-2"
style={{
height: "30px",
overflow: "visible",
}}
dateFormat={props.dateFormat}
value={props.date}
onChange={props.onChange}
name={props.name}
showTime={props.showTime}
showSeconds={props.showSeconds}
/>
I tried applying z-index to .p-datepicker / body .p-datepicker classes - but no luck.
Please suggest your thought to solve this issue ?
p-calendar hidden behind div
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Hi,
Sorry for the delayed response! Please use appendTo={document.body} on Calendar component.
Best Regards,
Sorry for the delayed response! Please use appendTo={document.body} on Calendar component.
Best Regards,
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 10 guests