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

Date picker not working in html <dialog> elements #7220

Open
robertmusil opened this issue Mar 15, 2024 · 1 comment
Open

Date picker not working in html <dialog> elements #7220

robertmusil opened this issue Mar 15, 2024 · 1 comment
Labels
known issue Known issue that can't be easily fixed needs research More information needed to estimate vaadin-date-picker vaadin-overlay

Comments

@robertmusil
Copy link

robertmusil commented Mar 15, 2024

Description

If you use <vaadin-date-picker> in <dialog> element (which uses showModal()), the dialog content is rendered in #top-layer, the vaadin though moves the overlay into the body: vaadin-overlay-mixin,js - _attachOverlay

This makes it so the component cannot be interacted in any way, and its programmatically impossible to bring it to front.

image

Expected outcome

I would expect being able not to render date picker in a "portal" inside of the body, but kept inside of the context of my
parent element

Minimal reproducible example

https://studio.webcomponents.dev/edit/pK6NkgWGpVfKynFGC38n/src/index.js?p=website

<dialog id="dialog">
      <vaadin-date-picker></vaadin-date-picker>
</dialog>

<script>
import '@vaadin/date-picker/vaadin-date-picker.js';

document.getElementById('dialog').showModal()
</script>

Steps to reproduce

  1. Click on date picker
  2. Date picker cannot be interacted with

Environment

Vaadin version(s): v24.3.8
OS: Any

Browsers

Issue is not browser related

@web-padawan
Copy link
Member

Thanks for the issue. Here's the related ticket for vaadin-select: #6325

@yuriy-fix yuriy-fix added needs research More information needed to estimate known issue Known issue that can't be easily fixed labels Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
known issue Known issue that can't be easily fixed needs research More information needed to estimate vaadin-date-picker vaadin-overlay
Projects
None yet
Development

No branches or pull requests

3 participants