You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
rahabonyani
changed the title
I want the date picker modal to be open by default when the page loads, i didn't saw anything
The date picker modal to be open by default
Jun 1, 2024
rahabonyani
changed the title
The date picker modal to be open by default
I want the date picker modal to be open by default when the page loads, i didn't saw anything
Jun 1, 2024
If you want to ensure your datepicker opens automatically when the page loads, you can use a combination of React hooks and a simulated click event. Here's how:
Reference the Wrapper div
Create a useRef hook to reference the div containing the Datepicker component. This will allow you to interact with the DOM element directly.
Use setTimeout to Delay the Click Event
To make sure the simulated click event is dispatched after the component is fully rendered, use the setTimeout function. This will delay the click event, allowing the DOM to be completely ready.
No description provided.
The text was updated successfully, but these errors were encountered: