Skip to content

Improve outside click and focus trap handing of EuiNavDrawer #1712

Closed

Description

@ryankeairns

The one last thing I saw that was odd is that in mobile screen sizes, clicking the white area of the flyout closes the whole sidebar. It doesn't do this in larger breakpoints.

I think there is something a little off with how the OutsideClickDetector is being enabled/disabled by the mobile menu button. This was becoming apparent when I was trying to fix up the 'toggle flyout if you click/touch the same icon again'. As I dug into it, it felt like a thing that would make for a follow-up PR as it touches logic in a few places.

This issue could likely be addressed along with #1713

Originally posted by @ryankeairns in #1701 (comment)

Activity

  1. changed the title [-]Improve the mobile menu toggling[/-] [+]Improve outside click handing of EuiNavDrawer[/+] on Mar 12, 2019
  2. cchaos commented on Mar 12, 2019

    @cchaos
    Contributor

    Edited title since it's an all around problem, not just mobile specific.

  3. changed the title [-]Improve outside click handing of EuiNavDrawer[/-] [+]Improve outside click and focus trap handing of EuiNavDrawer[/+] on Mar 12, 2019
  4. cchaos commented on Mar 12, 2019

    @cchaos
    Contributor

    Also including focus trap on this one.

  5. seeruk commented on May 1, 2020

    @seeruk
    Contributor

    Not sure if this'll be related to this issue, but there's something odd going on right now in the latest version of EUI where if I lock the NavDrawer, then unlock it, it doesn't detect the outside clicks and close the NavDrawer. Maybe something caused by the TypeScript migration?

    Edit: I think I can see the issue actually, will submit a PR.

  6. cchaos commented on Sep 18, 2020

    @cchaos
    Contributor

    This component is being deprecated in favor of EuiCollapsibleNav

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions