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 bug when inside modal. #1479

Open
speedwheel opened this issue Nov 3, 2024 · 1 comment
Open

Datepicker bug when inside modal. #1479

speedwheel opened this issue Nov 3, 2024 · 1 comment

Comments

@speedwheel
Copy link

speedwheel commented Nov 3, 2024

Describe the bug

When I put the calendar inside a Flowbite modal, the dropdown opens inside the modal instead of on top of the modal, and I've managed to fix more or less by applying position:fixed on the dropdown menu, but the positioning is not dynamic anymore.

Reproduction

Insert a datepicker component inside a Flowbite component and try to open the datepicker dropdown.

<Modal
	title="Add task"
	outsideclose
	size="md">
<Datepicker
bind:value={modalDataPanelDate}
dateFormat={{ year: '2-digit', month: 'short', day: '2-digit' }}
defaultDate={new Date()}
autohide={false}
showActionButtons
/>
</Modal>

Flowbite version and System Info

"svelte": "^5.0.0"
"flowbite": "^2.5.2",
"flowbite-svelte": "^0.47.2",

Distributor ID: Ubuntu
Description:    Ubuntu 24.04 LTS
Release:        24.04
Codename:       noble
image
@adrianet86
Copy link

Having similar issue.
The DatePicker does not show up.

image

Here my version of dependencies.

"svelte": "^4.2.19",
"flowbite": "^2.5.2",
"flowbite-svelte": "^0.44.24",

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