-
-
Notifications
You must be signed in to change notification settings - Fork 261
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
App switcher in UI Shell doesn't always close when clicking outside it #315
Comments
Open to PRs |
It seems that It looks like the same problem happens with the ComboBox component. So I did a search and the
Most of them use the click event, TooltipDefinition and TooltipIcon use keydown, while Slider uses a few others. |
Start with the UI Shell header switcher |
@metonym I can still see this behavior in Can I open a PR to switch out |
@phil-mayer Yes |
Might as well replace all the instances of |
Sure, happy to do so as long as @metonym is ok with the increase in scope. |
Yes, let's be consistent and resolve this once and for all |
Go to this demo: https://carbon-svelte.vercel.app/framed/UIShell/HeaderSwitcher
Open the app switcher in the UI Shell (top right button).
Click in the main window, anywhere between a few centimeters below the welcome text to the bottom of the page. So basically anywhere below
<main>
This can be fixed by changing
<svelte:body
to<svelte:window
in this line:https://github.com/IBM/carbon-components-svelte/blob/master/src/UIShell/GlobalHeader/HeaderAction.svelte#L54
The app switcher is now closing, however I don't know if this has other consequences.
The text was updated successfully, but these errors were encountered: