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

[Bug]: Picker doesn't close in modal overlay when clicked outside of picker element #5111

Open
1 task done
spdev3000 opened this issue Feb 21, 2025 · 1 comment
Open
1 task done
Labels

Comments

@spdev3000
Copy link
Collaborator

Code of conduct

  • I agree to follow this project's code of conduct.

Impacted component(s)

Picker, Overlay

Expected behavior

When a user opens a picker inside a modal overlay (dialog or such) the picker menu should be closing when the user clicks outside the picker or the modal overlay.

Actual behavior

When a user opens a picker inside a modal overlay (dialog or such) the picker menu can't be closed by clicking outside the picker nor modal overlay. Only selecting a different picker-item will close it.

Screenshots

No response

What browsers are you seeing the problem in?

Chrome

How can we reproduce this issue?

  1. Go to https://studio.webcomponents.dev/edit/T4qvf6VdDIDu5X2IQI3j/src/index.ts?p=stories
  2. Click on Button to open modal overlay
  3. Open picker component
  4. Try to click outside picker to close it
  5. See error

Sample code or abstract reproduction which illustrates the problem

No response

Severity

SEV 2

Logs taken while reproducing problem

No response

@spdev3000 spdev3000 changed the title [Bug]: Picker doesn't close in modal overlay when clicked outside of picker [Bug]: Picker doesn't close in modal overlay when clicked outside of picker element Feb 21, 2025
@najikahalsema
Copy link
Collaborator

SWC-687

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants