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

[select] Overlay opens and closes immediately when disabled and pointer-events: auto #7873

Closed
web-padawan opened this issue Sep 26, 2024 · 0 comments · Fixed by #7874
Closed
Labels
bug Something isn't working Impact: Low vaadin-select

Comments

@web-padawan
Copy link
Member

Description

When setting pointer-events: auto on the disabled vaadin-select it is possible to open it on click (and then it closes immediately). This is unexpected since clicking any component that is disabled should be ignored.

select-disabled-flash.mp4

Expected outcome

Expected no overlay open when disabled even if pointer-events: auto set on the host.

Minimal reproducible example

<vaadin-select label="Size" disabled style="pointer-events: auto"></vaadin-select>

<script type="module">
  import '@vaadin/select';

  const select = document.querySelector('vaadin-select');
  select.items = [
    { label: 'S', value: 's' },
    { label: 'M', value: 'm' },
    { label: 'L', value: 'l' },
    { label: 'XL', value: 'xl' },
  ];
</script>

Steps to reproduce

Open the page and click the disabled select.

Environment

Vaadin version(s): v24, v23

Browsers

Issue is not browser related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Impact: Low vaadin-select
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant