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

How to use inside a <dialog> element? #190

Closed
Sleepful opened this issue Jul 28, 2024 · 3 comments
Closed

How to use inside a <dialog> element? #190

Sleepful opened this issue Jul 28, 2024 · 3 comments

Comments

@Sleepful
Copy link

It seems that datepicker HTML node is appended at the root of the document, however elements only visibly display elements that are its own child nodes.

How do I make it such that I can use datepicker inside Dialog?

@Sleepful
Copy link
Author

Might be an issue with this other library I am using:

https://github.com/themesberg/flowbite-datepicker

@mymth
Copy link
Owner

mymth commented Jul 28, 2024

That's the behavior of v1.1.x and earlier. It's no longer the case for this library.
(see https://github.com/mymth/vanillajs-datepicker/blob/master/CHANGELOG.md#120)

You might be able to use the container option.

@Sleepful
Copy link
Author

Thank you! I will close this issue.

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

2 participants